CAPAUT-353 Add comments

This commit is contained in:
2024-03-25 16:35:50 +01:00
parent 874d4043a1
commit a7f14297f1

View File

@@ -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
}