Skip to content
This repository was archived by the owner on May 6, 2022. It is now read-only.

Commit 917fbd4

Browse files
author
Florian Lautenschlager
committed
Automated the release of the importer.
1 parent 5ee21fb commit 917fbd4

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

chronix-importer/build.gradle

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,19 @@ task copyLib(type: Copy) {
3232
into "$projectDir/importer/lib"
3333
from "$buildDir/libs/chronix-importer-${project.version}.jar"
3434
}
35-
task buildRelease(dependsOn: copyLib) {
36-
File file = new File("$projectDir/importer/import.sh")
3735

36+
task writeImporterScript(dependsOn: copyLib){
37+
File file = new File("$projectDir/importer/import.sh")
3838
file.write "#!/usr/bin/env bash\njava -Dlog4j.configurationFile=log4j2.xml -jar lib/chronix-importer-${project.version}.jar config.yml data/"
39+
40+
}
41+
42+
task zip(dependsOn: writeImporterScript, type:Zip) {
43+
from ("$projectDir/importer/")
44+
into "importer-${project.version}"
45+
destinationDir file('.')
46+
}
47+
48+
task buildRelease(dependsOn: zip) {
49+
3950
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/usr/bin/env bash
2-
java -Dlog4j.configurationFile=log4j2.xml -jar lib/chronix-importer-0.3.jar config.yml data/
2+
java -Dlog4j.configurationFile=log4j2.xml -jar lib/chronix-importer-0.4.jar config.yml data/

0 commit comments

Comments
 (0)