[#3] Ensure Attestation CA packages VERSION file correctly

This commit is contained in:
apldev3 2018-09-13 12:07:08 -04:00
parent 4e59c5fff3
commit 9fdd750935

View File

@ -37,6 +37,8 @@ task generateProtoBuf(type:Exec) {
} }
compileJava.dependsOn generateProtoBuf compileJava.dependsOn generateProtoBuf
copyVersion.dependsOn compileJava
war.dependsOn copyVersion
ext.configDir = new File(projectDir, 'config') ext.configDir = new File(projectDir, 'config')
ext.checkstyleConfigDir = "$configDir/checkstyle" ext.checkstyleConfigDir = "$configDir/checkstyle"
@ -49,6 +51,10 @@ checkstyle {
} }
war { war {
from(buildDir) {
include 'VERSION'
into 'WEB-INF/classes'
}
archiveName = 'HIRS_AttestationCA.war' archiveName = 'HIRS_AttestationCA.war'
} }