Merge branch 'main' into renovate/major-jetty-packages
This commit is contained in:
commit
745ce5bfca
2 changed files with 6 additions and 2 deletions
|
@ -148,9 +148,11 @@ installDist {
|
||||||
dependsOn build
|
dependsOn build
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.register('processSource', Sync) {
|
def processSource = tasks.register('processSource', Sync) {
|
||||||
def gitOutput = new ByteArrayOutputStream()
|
def gitOutput = new ByteArrayOutputStream()
|
||||||
|
|
||||||
|
outputs.dir "${project.buildDir}/src"
|
||||||
|
|
||||||
exec {
|
exec {
|
||||||
commandLine 'git', 'rev-parse', '--short', 'HEAD'
|
commandLine 'git', 'rev-parse', '--short', 'HEAD'
|
||||||
standardOutput = gitOutput
|
standardOutput = gitOutput
|
||||||
|
@ -165,9 +167,11 @@ tasks.register('processSource', Sync) {
|
||||||
.replaceAll('__builddate__', new Date().format("d MMM yyyy"))
|
.replaceAll('__builddate__', new Date().format("d MMM yyyy"))
|
||||||
.replaceAll('__commithash__', gitOutput.toString().trim())
|
.replaceAll('__commithash__', gitOutput.toString().trim())
|
||||||
.replaceAll('__version__', version)
|
.replaceAll('__version__', version)
|
||||||
} into "${project.buildDir}/src"
|
} into outputs.files.singleFile
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks.compileJava.source = processSource.map { it.outputs.files }
|
||||||
|
|
||||||
tasks.register('update') {
|
tasks.register('update') {
|
||||||
dependsOn installDist
|
dependsOn installDist
|
||||||
|
|
||||||
|
|
0
src/dist/extras/deploy.sh
vendored
Normal file → Executable file
0
src/dist/extras/deploy.sh
vendored
Normal file → Executable file
Loading…
Add table
Reference in a new issue