mirror of
https://codeberg.org/PGPainless/sop-java.git
synced 2024-12-22 12:57:57 +01:00
Write sop-java version to sop-java-version.properties
This commit is contained in:
parent
b4ce3dce16
commit
efe973fd2b
2 changed files with 10 additions and 0 deletions
|
@ -1,7 +1,10 @@
|
|||
import org.apache.tools.ant.filters.ReplaceTokens
|
||||
|
||||
// SPDX-FileCopyrightText: 2021 Paul Schaub <vanitasvitae@fsfe.org>
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import org.apache.tools.ant.filters.*
|
||||
plugins {
|
||||
id 'java-library'
|
||||
}
|
||||
|
@ -23,6 +26,12 @@ dependencies {
|
|||
|
||||
}
|
||||
|
||||
processResources {
|
||||
filter ReplaceTokens, tokens: [
|
||||
"project.version": project.version.toString()
|
||||
]
|
||||
}
|
||||
|
||||
test {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
|
|
1
sop-java/src/main/resources/sop-java-version.properties
Normal file
1
sop-java/src/main/resources/sop-java-version.properties
Normal file
|
@ -0,0 +1 @@
|
|||
sop-java-version=@project.version@
|
Loading…
Reference in a new issue