opentcs/opentcs-common/build.gradle

43 lines
1.5 KiB
Groovy
Raw Normal View History

2024-11-30 18:36:13 +08:00
// 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'
2025-02-14 16:27:16 +08:00
// https://mvnrepository.com/artifact/com.github.ben-manes.caffeine/caffeine
implementation group: 'com.github.ben-manes.caffeine', name: 'caffeine', version: '3.1.8'
// https://mvnrepository.com/artifact/io.netty/netty-all
implementation group: 'io.netty', name: 'netty-all', version: '4.1.110.Final'
// https://mvnrepository.com/artifact/org.springframework.retry/spring-retry
implementation group: 'org.springframework.retry', name: 'spring-retry', version: '2.0.5'
// https://mvnrepository.com/artifact/ch.qos.logback/logback-classic
implementation group: 'ch.qos.logback', name: 'logback-classic', version: '1.5.16'
2024-11-30 18:36:13 +08:00
}
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
}