mirror of
https://github.com/nsacyber/HIRS.git
synced 2024-12-20 05:28:22 +00:00
3d795a56ee
Some checks are pending
Dotnet Provisioner Unit Tests / Restore and Run Unit Tests (ubuntu-20.04) (push) Waiting to run
Dotnet Provisioner Unit Tests / Restore and Run Unit Tests (windows-2022) (push) Waiting to run
Dotnet Provisioner Unit Tests / Evaluate Tests (push) Blocked by required conditions
HIRS Build and Unit Test / ACA_Provisioner_Unit_Tests (push) Waiting to run
HIRS System Tests / DockerTests (push) Waiting to run
64 lines
1.8 KiB
Groovy
64 lines
1.8 KiB
Groovy
// Get version from main project gradle
|
|
def packVersion = properties.get("packageVersion")
|
|
def jarVersion = properties.get("jarVersion")
|
|
//println "packageVersion is ${projVersion}"
|
|
|
|
configurations {
|
|
compileOnly {
|
|
extendsFrom annotationProcessor
|
|
}
|
|
jaxb
|
|
}
|
|
|
|
dependencies {
|
|
implementation libs.bouncycastle
|
|
implementation libs.commons.codec
|
|
implementation libs.commons.lang3
|
|
implementation libs.commons.io
|
|
implementation libs.glassfish.jaxb.runtime
|
|
implementation libs.guava
|
|
implementation libs.jackson.core
|
|
implementation libs.jackson.databind
|
|
implementation libs.jakarta.persistence.api
|
|
implementation libs.jakarta.xml
|
|
implementation libs.spring.boot.starter.log4j2
|
|
implementation libs.minimal.json
|
|
|
|
// pull the pci dependency and ...
|
|
implementation libs.pci
|
|
// and explicitly include the patched version of the apache http client dependency
|
|
implementation libs.apacheHttpClient
|
|
|
|
implementation libs.slf4j.simple
|
|
|
|
compileOnly libs.lombok
|
|
annotationProcessor libs.lombok
|
|
|
|
testImplementation libs.spring.boot.starter.test
|
|
testImplementation project(path: ':HIRS_AttestationCA')
|
|
|
|
testCompileOnly libs.lombok
|
|
testAnnotationProcessor libs.lombok
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
jar {
|
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
|
manifest {
|
|
attributes(
|
|
'Class-Path': configurations.runtimeClasspath.files.collect { it.getName() }.join(' ')
|
|
)
|
|
}
|
|
//jar name format: [archiveBaseName]-[archiveAppendix]-[archiveVersion]-[archiveClassifier].[archiveExtension]
|
|
archiveVersion = jarVersion
|
|
}
|
|
|
|
//task generateXjcLibrary(type:Exec) {
|
|
// workingDir 'config'
|
|
//
|
|
// commandLine './genXjcLibrary.sh'
|
|
//}
|
|
//compileJava.dependsOn generateXjcLibrary |