HIRS/HIRS_Utils/build.gradle

77 lines
1.9 KiB
Groovy
Raw Normal View History

2023-03-07 01:48:51 +00:00
plugins {
id 'java'
}
// Get version from main project gradle
def packVersion = properties.get("packageVersion");
def jarVersion = properties.get("jarVersion");
//println "packageVersion is ${projVersion}"
2023-03-07 01:48:51 +00:00
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
repositories {
mavenCentral()
flatDir { dirs "lib" }
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
jaxb
}
dependencies {
implementation libs.bouncycastle
implementation libs.lombok
implementation libs.jackson.core
implementation libs.jackson.databind
implementation libs.jakarta.api
implementation libs.jakarta.xml
implementation libs.guava
implementation libs.commons.codec
implementation libs.commons.lang3
implementation libs.commons.io
implementation libs.minimal.json
implementation libs.hibernate.core
2023-03-07 01:48:51 +00:00
implementation 'org.apache.logging.log4j:log4j-core:2.19.0'
implementation 'org.apache.logging.log4j:log4j-api:2.19.0'
implementation 'org.glassfish.jaxb:jaxb-runtime:4.0.1'
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.3'
testImplementation 'org.junit.platform:junit-platform-launcher:1.9.3'
testImplementation 'org.hamcrest:hamcrest:2.2'
2023-08-28 20:50:48 +00:00
testImplementation project(path: ':HIRS_AttestationCA')
2023-07-17 20:15:57 +00:00
2023-03-07 01:48:51 +00:00
compileOnly libs.lombok
annotationProcessor libs.lombok
}
test {
useJUnitPlatform()
}
jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
manifest {
attributes(
2023-07-17 20:15:57 +00:00
'Class-Path': configurations.runtimeClasspath.files.collect { it.getName() }.join(' ')
)
}
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'
//}
//compileJava.dependsOn generateXjcLibrary