HIRS/HIRS_AttestationCA/build.gradle

67 lines
1.6 KiB
Groovy
Raw Normal View History

plugins {
id 'war'
id 'java'
}
2018-09-06 13:47:33 +00:00
tasks.withType(JavaCompile) {
options.release = 11
}
2018-09-06 13:47:33 +00:00
repositories {
mavenCentral()
}
2018-09-06 13:47:33 +00:00
evaluationDependsOn(':HIRS_Utils')
2018-09-06 13:47:33 +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
implementation libs.servlet.api
2018-09-06 13:47:33 +00:00
testImplementation project(':HIRS_Utils').sourceSets.test.output
testImplementation project(':HIRS_Utils').sourceSets.test.resources
2018-09-06 13:47:33 +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'
}
def copyVersion = project.task('copyVersion')
2018-09-06 13:47:33 +00:00
compileJava.dependsOn generateProtoBuf
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 {
from(buildDir) {
include 'VERSION'
into 'WEB-INF/classes'
}
archiveFileName = 'HIRS_AttestationCA.war'
2018-09-06 13:47:33 +00:00
}