2022-10-31 20:46:06 +00:00
|
|
|
plugins {
|
|
|
|
id 'war'
|
|
|
|
id 'java'
|
|
|
|
}
|
2018-09-06 13:47:33 +00:00
|
|
|
|
2022-10-31 20:46:06 +00:00
|
|
|
tasks.withType(JavaCompile) {
|
|
|
|
options.release = 11
|
|
|
|
}
|
2018-09-06 13:47:33 +00:00
|
|
|
|
2022-10-31 20:46:06 +00:00
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
2018-09-06 13:47:33 +00:00
|
|
|
|
2022-10-31 20:46:06 +00:00
|
|
|
evaluationDependsOn(':HIRS_Utils')
|
2018-09-06 13:47:33 +00:00
|
|
|
|
2022-10-31 20:46:06 +00:00
|
|
|
dependencies {
|
|
|
|
// implementation project(':TPM_Utils')
|
|
|
|
implementation project(':HIRS_Structs')
|
|
|
|
implementation project(':HIRS_Utils')
|
|
|
|
implementation libs.bouncy.castle
|
|
|
|
implementation libs.commons.codec
|
|
|
|
implementation libs.commons.lang
|
|
|
|
implementation libs.commons.io
|
|
|
|
implementation libs.guava
|
|
|
|
implementation libs.javax.jaxb
|
|
|
|
implementation libs.spring.webmvc
|
|
|
|
implementation libs.spring.data
|
|
|
|
implementation libs.spring.boot
|
|
|
|
implementation libs.spring.retry
|
|
|
|
implementation libs.spring.plugin
|
|
|
|
implementation libs.log4j2
|
|
|
|
implementation libs.log4j2.web
|
|
|
|
implementation libs.protobuf.java
|
2018-09-06 13:47:33 +00:00
|
|
|
|
2022-10-31 20:46:06 +00:00
|
|
|
implementation libs.servlet.api
|
2018-09-06 13:47:33 +00:00
|
|
|
|
2022-10-31 20:46:06 +00:00
|
|
|
testImplementation project(':HIRS_Utils').sourceSets.test.output
|
|
|
|
testImplementation project(':HIRS_Utils').sourceSets.test.resources
|
2018-09-06 13:47:33 +00:00
|
|
|
|
2022-10-31 20:46:06 +00:00
|
|
|
testImplementation libs.commons.lang
|
|
|
|
testImplementation libs.spring.test
|
|
|
|
testImplementation libs.mockito
|
|
|
|
testImplementation libs.testng
|
|
|
|
testImplementation libs.hsqldb
|
2018-09-06 13:47:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
task generateProtoBuf(type:Exec) {
|
|
|
|
workingDir 'config'
|
|
|
|
commandLine './genJavaProtoBuf.sh'
|
|
|
|
}
|
|
|
|
|
2022-10-31 20:46:06 +00:00
|
|
|
def copyVersion = project.task('copyVersion')
|
2018-09-06 13:47:33 +00:00
|
|
|
compileJava.dependsOn generateProtoBuf
|
2018-09-13 16:07:08 +00:00
|
|
|
copyVersion.dependsOn compileJava
|
|
|
|
war.dependsOn copyVersion
|
2018-09-06 13:47:33 +00:00
|
|
|
|
|
|
|
ext.configDir = new File(projectDir, 'config')
|
|
|
|
ext.checkstyleConfigDir = "$configDir/checkstyle"
|
|
|
|
|
|
|
|
war {
|
2018-09-13 16:07:08 +00:00
|
|
|
from(buildDir) {
|
|
|
|
include 'VERSION'
|
|
|
|
into 'WEB-INF/classes'
|
|
|
|
}
|
2022-10-31 20:46:06 +00:00
|
|
|
archiveFileName = 'HIRS_AttestationCA.war'
|
2018-09-06 13:47:33 +00:00
|
|
|
}
|