Compare commits

...

2 commits

Author SHA1 Message Date
98854ac3c9
Fix regression of Java sources not being processed before compiling 2025-04-11 12:25:09 +02:00
517735e53d
Make deploy script executable
All checks were successful
Build / build (push) Successful in 8s
2025-04-10 23:40:49 +02:00
2 changed files with 6 additions and 2 deletions

View file

@ -148,9 +148,11 @@ installDist {
dependsOn build
}
tasks.register('processSource', Sync) {
def processSource = tasks.register('processSource', Sync) {
def gitOutput = new ByteArrayOutputStream()
outputs.dir "${project.buildDir}/src"
exec {
commandLine 'git', 'rev-parse', '--short', 'HEAD'
standardOutput = gitOutput
@ -165,9 +167,11 @@ tasks.register('processSource', Sync) {
.replaceAll('__builddate__', new Date().format("d MMM yyyy"))
.replaceAll('__commithash__', gitOutput.toString().trim())
.replaceAll('__version__', version)
} into "${project.buildDir}/src"
} into outputs.files.singleFile
}
tasks.compileJava.source = processSource.map { it.outputs.files }
tasks.register('update') {
dependsOn installDist

0
src/dist/extras/deploy.sh vendored Normal file → Executable file
View file