Skip to content

Commit d7d693f

Browse files
committed
break force snapshot into it's own jar file
1 parent 3648555 commit d7d693f

File tree

6 files changed

+14
-197
lines changed

6 files changed

+14
-197
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ subprojects {
33
apply plugin: 'maven'
44
apply plugin: 'eclipse'
55

6-
group = 'com.example'
7-
version = '1.0.5'
6+
group = 'com.overops'
7+
version = '1.0.0'
88

99
repositories {
1010
mavenCentral()

my-udfs/build.gradle renamed to force-snapshot/build.gradle

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apply plugin: 'eu.appsatori.fatjar'
22

3-
archivesBaseName = 'my-udfs'
3+
archivesBaseName = 'force-snapshot'
44

55
buildscript {
66
repositories {
@@ -26,16 +26,16 @@ fatJar {
2626
exclude 'META-INF/maven'
2727
exclude 'META-INF/*.example'
2828
manifest {
29-
attributes 'Main-Class': 'MyUDFs'
29+
attributes 'Main-Class': 'ForceSnapshot'
3030
}
3131
}
3232

3333
uploadArchives {
3434
repositories {
3535
mavenDeployer {
3636
pom.project {
37-
name 'my-udfs'
38-
description 'My User Defined Functions extending OverOps'
37+
name 'force-snapshot'
38+
description 'Force Snapshot User Defined Function'
3939

4040
licenses {
4141
license {
@@ -45,9 +45,9 @@ uploadArchives {
4545
}
4646

4747
scm {
48-
connection 'scm:git:https://github.com/takipi-field/udf/tree/master/my-udfs'
49-
developerConnection 'scm:git:https://github.com/takipi-field/udf/tree/master/my-udfs'
50-
url 'https://github.com/takipi-field/udf/tree/master/my-udfs'
48+
connection 'scm:git:https://github.com/takipi-field/udf/tree/force-snapshot/force-snapshot'
49+
developerConnection 'scm:git:https://github.com/takipi-field/udf/tree/force-snapshot/force-snapshot'
50+
url 'https://github.com/takipi-field/udf/tree/force-snapshot/force-snapshot'
5151
}
5252
}
5353
}

my-udfs/src/main/java/com/example/udf/snapshot/ForceSnapshotFunction.java renamed to force-snapshot/src/main/java/com/overops/udf/snapshot/ForceSnapshotFunction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.example.udf.snapshot;
1+
package com.overops.udf.snapshot;
22

33
import java.util.ArrayList;
44
import java.util.List;
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<udf_manifest>
3-
<version>1.0.2</version>
4-
<library_name>my-udfs</library_name>
3+
<version>1.0.0</version>
4+
<library_name>force-snapshot</library_name>
55
<backwards_compatible>true</backwards_compatible>
66
<functions>
77
<function>
@@ -11,25 +11,12 @@
1111
Force a snapshot the next time an event occurs for every event that has occurred in the last {timespan} minutes.
1212
</description>
1313
<param_type>TEXT</param_type>
14-
<class_file>com.example.udf.snapshot.ForceSnapshotFunction</class_file>
14+
<class_file>com.overops.udf.snapshot.ForceSnapshotFunction</class_file>
1515
<default_params>
1616
# Get events from the last {timespan} minutes
1717
timespan=5
1818
</default_params>
1919
<admin_function>true</admin_function>
2020
</function>
21-
<function>
22-
<function_type>CHANNEL</function_type>
23-
<function_name>Hello World</function_name>
24-
<description>
25-
Simple "Hello, World!" UDF that applies a label to events.
26-
</description>
27-
<param_type>TEXT</param_type>
28-
<class_file>com.example.udf.helloworld.HelloWorldFunction</class_file>
29-
<default_params>
30-
# Label to apply to events
31-
label=Hello_World
32-
</default_params>
33-
</function>
3421
</functions>
3522
</udf_manifest>

my-udfs/src/main/java/com/example/udf/helloworld/HelloWorldFunction.java

Lines changed: 0 additions & 170 deletions
This file was deleted.

settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
rootProject.name = "udf"
2-
include "my-udfs"
2+
include "force-snapshot"

0 commit comments

Comments
 (0)