2022-10-31 16:46:06 -04:00
|
|
|
plugins {
|
|
|
|
// Apply the application plugin to add support for building a CLI application in Java.
|
|
|
|
id 'application'
|
|
|
|
}
|
2018-09-06 09:47:33 -04:00
|
|
|
|
2022-10-31 16:46:06 -04:00
|
|
|
// Global checkstyle file
|
|
|
|
ext.checkstyleConfigFile = new File(rootDir, "/config/checkstyle/sun_checks.xml")
|
2018-09-06 09:47:33 -04:00
|
|
|
|
2022-10-31 16:46:06 -04:00
|
|
|
dependencies {
|
|
|
|
repositories {
|
|
|
|
// Use Maven Central for resolving dependencies.
|
|
|
|
mavenCentral()
|
|
|
|
}
|
2022-11-07 09:45:31 -05:00
|
|
|
// implementation project(':HIRS_Utils')
|
|
|
|
// implementation project(':HIRS_Structs')
|
2022-10-31 16:46:06 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks.register('copyVersion') {
|
2018-09-06 09:47:33 -04:00
|
|
|
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")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-10-31 16:46:06 -04:00
|
|
|
version = file("$rootDir/VERSION").text.trim() + "-SNAPSHOT"
|