HIRS/build.gradle
2022-10-31 16:46:06 -04:00

29 lines
893 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"