CAPAUT-353 Add comments
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* Enables version handling on build process
|
||||
*
|
||||
* Project: de.captica.expert.config-server
|
||||
* Project: gradle
|
||||
* Author: Marc Böhm <marc.boehm@captica.de>
|
||||
* License: MIT License (see LICENSE.md)
|
||||
*
|
||||
@@ -45,6 +45,7 @@ gitVersioning.apply {
|
||||
}
|
||||
}
|
||||
|
||||
// Simple task to write the env shell script to register version env vars
|
||||
task writeVersionFile() {
|
||||
doLast {
|
||||
new File(buildDir, 'env-setup.sh').text = """
|
||||
@@ -67,6 +68,7 @@ echo "CAPTICA_APPLICATION_JAVA_VERSION=\$CAPTICA_APPLICATION_JAVA_VERSION" >> \$
|
||||
}
|
||||
}
|
||||
|
||||
// Link up version file task to bootJar
|
||||
tasks.named('bootJar').configure {
|
||||
dependsOn writeVersionFile
|
||||
}
|
||||
Reference in New Issue
Block a user