This commit is contained in:
30
opentcs-common/build.gradle
Normal file
30
opentcs-common/build.gradle
Normal file
@@ -0,0 +1,30 @@
|
||||
// SPDX-FileCopyrightText: The openTCS Authors
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
apply from: "${rootDir}/gradle/java-project.gradle"
|
||||
apply from: "${rootDir}/gradle/java-codequality.gradle"
|
||||
apply from: "${rootDir}/gradle/publishing-java.gradle"
|
||||
|
||||
dependencies {
|
||||
api project(':opentcs-api-base')
|
||||
|
||||
api group: 'jakarta.xml.bind', name: 'jakarta.xml.bind-api', version: '2.3.3'
|
||||
api group: 'org.glassfish.jaxb', name: 'jaxb-runtime', version: '2.3.9'
|
||||
|
||||
implementation group: 'org.semver4j', name: 'semver4j', version: '5.4.0'
|
||||
}
|
||||
|
||||
processResources.doLast {
|
||||
// Write a properties file with the build version and date.
|
||||
def props = new Properties()
|
||||
props.setProperty('opentcs.version', version)
|
||||
props.setProperty('opentcs.builddate', project.ext.buildDate)
|
||||
|
||||
new File(sourceSets.main.output.resourcesDir, 'opentcs.properties').withWriter() {
|
||||
props.store(it, null)
|
||||
}
|
||||
}
|
||||
|
||||
task release {
|
||||
dependsOn build
|
||||
}
|
||||
Reference in New Issue
Block a user