opentcs/opentcs-common/build.gradle
CaiXiang aa56926258
Some checks failed
Gradle Build / build (push) Has been cancelled
Initial commit
2024-11-30 18:36:13 +08:00

31 lines
913 B
Groovy

// 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
}