mirror of
https://github.com/nsacyber/HIRS.git
synced 2024-12-21 22:07:57 +00:00
29 lines
897 B
Groovy
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"
|