2023-03-07 01:56:34 +00:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
|
|
|
id 'io.spring.dependency-management' version '1.1.0'
|
2023-09-24 15:59:32 +00:00
|
|
|
id 'com.google.protobuf' version '0.9.4'
|
2024-02-02 13:07:08 +00:00
|
|
|
id 'checkstyle'
|
2023-03-07 01:56:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
java {
|
|
|
|
toolchain {
|
|
|
|
languageVersion = JavaLanguageVersion.of(17)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
|
|
|
|
flatDir { dirs "lib" }
|
|
|
|
}
|
|
|
|
|
|
|
|
configurations {
|
|
|
|
compileOnly {
|
|
|
|
extendsFrom annotationProcessor
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation project(':HIRS_Utils')
|
2023-08-29 19:15:34 +00:00
|
|
|
implementation project(':HIRS_Structs')
|
2023-03-07 01:56:34 +00:00
|
|
|
|
|
|
|
implementation 'org.springframework.boot:spring-boot-starter-data-jpa:3.0.1'
|
2023-04-26 12:32:45 +00:00
|
|
|
implementation 'com.github.darrachequesne:spring-data-jpa-datatables:6.0.1'
|
|
|
|
implementation 'org.springframework.retry:spring-retry:2.0.0'
|
2023-06-13 14:12:25 +00:00
|
|
|
implementation libs.springdatajpa
|
2023-03-07 01:56:34 +00:00
|
|
|
|
2023-03-07 14:23:55 +00:00
|
|
|
implementation libs.bouncycastle
|
|
|
|
implementation libs.commons.codec
|
|
|
|
implementation libs.commons.lang3
|
|
|
|
implementation libs.jakarta.api
|
|
|
|
implementation libs.jakarta.xml
|
2023-04-26 12:32:45 +00:00
|
|
|
implementation libs.hibernate.core
|
2023-09-21 19:02:24 +00:00
|
|
|
implementation libs.pci
|
2023-03-07 14:23:55 +00:00
|
|
|
implementation libs.guava
|
|
|
|
implementation libs.jackson.core
|
|
|
|
implementation libs.jackson.databind
|
|
|
|
implementation libs.minimal.json
|
2023-08-29 19:15:34 +00:00
|
|
|
implementation libs.protobuf.java
|
2023-03-07 01:56:34 +00:00
|
|
|
implementation 'org.apache.logging.log4j:log4j-core:2.19.0'
|
|
|
|
implementation 'org.apache.logging.log4j:log4j-api:2.19.0'
|
2023-10-05 18:31:29 +00:00
|
|
|
|
2024-01-25 14:48:14 +00:00
|
|
|
testImplementation 'org.apache.directory.studio:org.apache.commons.io:2.4'
|
|
|
|
testImplementation 'org.hamcrest:hamcrest:2.2'
|
2023-10-05 18:31:29 +00:00
|
|
|
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.3'
|
|
|
|
testImplementation 'org.junit.platform:junit-platform-launcher:1.9.3'
|
2023-12-05 20:09:01 +00:00
|
|
|
testImplementation 'org.mockito:mockito-core:4.2.0'
|
2024-01-29 15:54:49 +00:00
|
|
|
testImplementation 'org.springframework:spring-test:6.0.8'
|
2023-12-05 20:09:01 +00:00
|
|
|
|
2024-10-25 21:30:36 +00:00
|
|
|
compileOnly "com.github.spotbugs:spotbugs-annotations:${spotBugAnnotationVersion}"
|
|
|
|
annotationProcessor "com.github.spotbugs:spotbugs-annotations:${spotBugAnnotationVersion}"
|
|
|
|
|
2023-03-07 01:56:34 +00:00
|
|
|
// spring management
|
|
|
|
compileOnly libs.lombok
|
|
|
|
implementation libs.lombok
|
|
|
|
annotationProcessor libs.lombok
|
|
|
|
}
|
2024-02-02 13:07:08 +00:00
|
|
|
checkstyle {
|
|
|
|
toolVersion = '10.12.7'
|
|
|
|
configFile file("${rootDir}/config/checkstyle/checkstyle.xml")
|
|
|
|
}
|
|
|
|
// https://github.com/checkstyle/checkstyle/issues/14211#issuecomment-1884129948
|
|
|
|
configurations.checkstyle {
|
|
|
|
resolutionStrategy.capabilitiesResolution.withCapability("com.google.collections:google-collections") {
|
|
|
|
select("com.google.guava:guava:0")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
checkstyleMain {
|
2024-10-21 17:46:57 +00:00
|
|
|
source = 'src/main/java'
|
2024-02-02 13:07:08 +00:00
|
|
|
}
|
|
|
|
checkstyleTest {
|
2024-10-21 17:46:57 +00:00
|
|
|
source = 'src/test/java'
|
2024-02-02 13:07:08 +00:00
|
|
|
}
|
|
|
|
tasks.withType(Checkstyle) {
|
|
|
|
reports {
|
|
|
|
xml.required = false
|
|
|
|
html.required = true
|
|
|
|
}
|
|
|
|
}
|
2023-09-24 15:59:32 +00:00
|
|
|
protobuf {
|
2024-10-21 17:46:57 +00:00
|
|
|
protoc {
|
|
|
|
artifact = 'com.google.protobuf:protoc:3.24.3'
|
|
|
|
}
|
2023-09-24 15:59:32 +00:00
|
|
|
}
|
|
|
|
sourceSets {
|
2024-10-21 17:46:57 +00:00
|
|
|
main {
|
|
|
|
proto {
|
2024-11-01 19:13:54 +00:00
|
|
|
srcDir '../HIRS_Provisioner.NET/hirs/Resources'
|
2024-10-21 17:46:57 +00:00
|
|
|
}
|
2023-09-24 15:59:32 +00:00
|
|
|
}
|
2023-08-29 19:15:34 +00:00
|
|
|
}
|
|
|
|
|
2023-03-07 01:56:34 +00:00
|
|
|
test {
|
|
|
|
useJUnitPlatform()
|
|
|
|
}
|