Compare commits
3 commits
clean-up-c
...
main
Author | SHA1 | Date | |
---|---|---|---|
27cdc5104b | |||
c4abd27ac7 | |||
6b88318bcd |
3 changed files with 18 additions and 12 deletions
22
.gitignore
vendored
22
.gitignore
vendored
|
@ -1,5 +1,7 @@
|
|||
# Generally ignore hidden files
|
||||
.*
|
||||
|
||||
# Manage some Codium configuration
|
||||
.vscode/*
|
||||
!.vscode
|
||||
!.vscode/extensions.json
|
||||
|
@ -7,22 +9,22 @@
|
|||
!.vscode/settings.json
|
||||
!.vscode/tasks.json
|
||||
|
||||
build
|
||||
|
||||
/apps
|
||||
# Ignore files created during build or run
|
||||
/bin
|
||||
/backups
|
||||
/db
|
||||
build
|
||||
/docs
|
||||
/extras
|
||||
/lib
|
||||
/licenses
|
||||
/log
|
||||
|
||||
# Ignore files managed in src/dist
|
||||
/*.properties
|
||||
/apps
|
||||
/db
|
||||
/extras
|
||||
/launcher.jar
|
||||
/static
|
||||
|
||||
/*.properties
|
||||
# Manage Gradle configuration
|
||||
!/gradle.properties
|
||||
|
||||
/launcher.jar
|
||||
/passwd
|
||||
/start.*
|
||||
|
|
|
@ -147,9 +147,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
|
||||
|
@ -164,9 +166,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
0
src/dist/extras/deploy.sh
vendored
Normal file → Executable file
Loading…
Add table
Reference in a new issue