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

Commit 5e371d5

Browse files
author
Florian Lautenschlager
authored
Merge pull request #5 from FlorianLautenschlager/master
Automated the importer release.
2 parents a6ca1f4 + 917fbd4 commit 5e371d5

File tree

126 files changed

+22
-7
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

126 files changed

+22
-7
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ subprojects {
5858
apply plugin: 'com.jfrog.bintray'
5959
apply plugin: 'com.github.hierynomus.license'
6060

61-
version = "0.3"
61+
version = "0.4"
6262

6363
license {
6464
includes(["**/*.java", "**/*.groovy"])

chronix-importer/build.gradle

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,23 @@ jar {
2828
}
2929
}
3030

31-
task buildRelease(type: Copy) {
32-
into "$projectDir/release/lib"
33-
from "$buildDir/libs/chronix-importer-0.3.jar"
31+
task copyLib(type: Copy) {
32+
into "$projectDir/importer/lib"
33+
from "$buildDir/libs/chronix-importer-${project.version}.jar"
34+
}
35+
36+
task writeImporterScript(dependsOn: copyLib){
37+
File file = new File("$projectDir/importer/import.sh")
38+
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+
3450
}
File renamed without changes.

0 commit comments

Comments
 (0)