2023-03-17 18:47:10 +00:00
|
|
|
// Get version from main project gradle
|
2024-10-30 21:36:19 +00:00
|
|
|
def packVersion = properties.get("packageVersion")
|
|
|
|
def jarVersion = properties.get("jarVersion")
|
2023-03-17 18:47:10 +00:00
|
|
|
//println "packageVersion is ${projVersion}"
|
|
|
|
|
2023-03-07 01:48:51 +00:00
|
|
|
configurations {
|
|
|
|
compileOnly {
|
|
|
|
extendsFrom annotationProcessor
|
|
|
|
}
|
|
|
|
jaxb
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2023-03-07 14:23:55 +00:00
|
|
|
implementation libs.bouncycastle
|
2024-11-22 15:58:20 +00:00
|
|
|
implementation libs.commons.codec
|
|
|
|
implementation libs.commons.lang3
|
|
|
|
implementation libs.commons.io
|
|
|
|
implementation libs.glassfish.jaxb.runtime
|
|
|
|
implementation libs.guava
|
2023-03-07 14:23:55 +00:00
|
|
|
implementation libs.jackson.core
|
|
|
|
implementation libs.jackson.databind
|
2024-11-21 17:07:57 +00:00
|
|
|
implementation libs.jakarta.persistence.api
|
2023-03-07 14:23:55 +00:00
|
|
|
implementation libs.jakarta.xml
|
2024-12-17 19:58:41 +00:00
|
|
|
implementation libs.spring.boot.starter.log4j2
|
2024-11-22 15:58:20 +00:00
|
|
|
implementation libs.minimal.json
|
2024-11-27 00:08:04 +00:00
|
|
|
|
|
|
|
// pull the pci dependency and ...
|
2024-12-18 21:44:41 +00:00
|
|
|
implementation libs.pci
|
2024-12-17 19:58:41 +00:00
|
|
|
// and explicitly include the patched version of the apache http client dependency
|
2024-11-27 00:08:04 +00:00
|
|
|
implementation libs.apacheHttpClient
|
2024-11-27 00:49:30 +00:00
|
|
|
|
2024-11-21 17:07:57 +00:00
|
|
|
implementation libs.slf4j.simple
|
2023-03-07 01:48:51 +00:00
|
|
|
|
2024-11-22 15:58:20 +00:00
|
|
|
compileOnly libs.lombok
|
|
|
|
annotationProcessor libs.lombok
|
|
|
|
|
2024-12-17 19:58:41 +00:00
|
|
|
testImplementation libs.spring.boot.starter.test
|
2024-08-14 22:51:39 +00:00
|
|
|
testImplementation project(path: ':HIRS_AttestationCA')
|
2024-11-25 20:34:27 +00:00
|
|
|
|
2024-11-22 15:58:20 +00:00
|
|
|
testCompileOnly libs.lombok
|
|
|
|
testAnnotationProcessor libs.lombok
|
2023-03-07 01:48:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
test {
|
|
|
|
useJUnitPlatform()
|
|
|
|
}
|
|
|
|
|
2023-03-17 18:47:10 +00:00
|
|
|
jar {
|
|
|
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
|
|
|
manifest {
|
|
|
|
attributes(
|
2023-07-17 20:15:57 +00:00
|
|
|
'Class-Path': configurations.runtimeClasspath.files.collect { it.getName() }.join(' ')
|
|
|
|
)
|
2023-03-17 18:47:10 +00:00
|
|
|
}
|
2023-07-17 20:15:57 +00:00
|
|
|
//jar name format: [archiveBaseName]-[archiveAppendix]-[archiveVersion]-[archiveClassifier].[archiveExtension]
|
|
|
|
archiveVersion = jarVersion
|
2023-05-03 18:44:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
//task generateXjcLibrary(type:Exec) {
|
|
|
|
// workingDir 'config'
|
|
|
|
//
|
|
|
|
// commandLine './genXjcLibrary.sh'
|
|
|
|
//}
|
2023-11-01 14:03:34 +00:00
|
|
|
//compileJava.dependsOn generateXjcLibrary
|