HIRS/build.gradle
2022-11-07 09:45:31 -05:00

29 lines
897 B
Groovy

plugins {
// Apply the application plugin to add support for building a CLI application in Java.
id 'application'
}
// Global checkstyle file
ext.checkstyleConfigFile = new File(rootDir, "/config/checkstyle/sun_checks.xml")
dependencies {
repositories {
// Use Maven Central for resolving dependencies.
mavenCentral()
}
// implementation project(':HIRS_Utils')
// implementation project(':HIRS_Structs')
}
tasks.register('copyVersion') {
doLast {
if (project.hasProperty('displayVersion')) {
String resourceDir="${buildDir}/resources/main"
println "setting app version file contents of: ${displayVersion} to ${resourceDir}"
new File(resourceDir, "VERSION").write("$displayVersion")
}
}
}
version = file("$rootDir/VERSION").text.trim() + "-SNAPSHOT"