2023-08-29 19:15:34 +00:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
2024-02-02 13:07:08 +00:00
|
|
|
id 'checkstyle'
|
2023-08-29 19:15:34 +00:00
|
|
|
}
|
2018-09-06 13:47:33 +00:00
|
|
|
|
2023-08-29 19:15:34 +00:00
|
|
|
java {
|
|
|
|
toolchain {
|
|
|
|
languageVersion = JavaLanguageVersion.of(17)
|
|
|
|
}
|
|
|
|
}
|
2018-09-06 13:47:33 +00:00
|
|
|
|
2023-08-29 19:15:34 +00:00
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
2018-09-06 13:47:33 +00:00
|
|
|
|
2023-08-29 19:15:34 +00:00
|
|
|
flatDir { dirs "lib" }
|
2018-09-06 13:47:33 +00:00
|
|
|
}
|
|
|
|
|
2023-08-29 19:15:34 +00:00
|
|
|
dependencies {
|
2024-11-21 17:07:57 +00:00
|
|
|
implementation libs.commons.lang3
|
2018-09-06 13:47:33 +00:00
|
|
|
|
2023-08-29 19:15:34 +00:00
|
|
|
// testCompile libs.mockito
|
2024-11-21 17:07:57 +00:00
|
|
|
testImplementation libs.junit.jupiter
|
|
|
|
testImplementation libs.junit.platform.launcher
|
|
|
|
testImplementation libs.hamcrest
|
2024-01-24 19:28:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
test {
|
|
|
|
useJUnitPlatform()
|
2018-09-06 13:47:33 +00:00
|
|
|
}
|
|
|
|
|
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-11-08 20:48:21 +00:00
|
|
|
source = 'src/main/java'
|
2024-02-02 13:07:08 +00:00
|
|
|
}
|
|
|
|
checkstyleTest {
|
2024-11-08 20:48:21 +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-08-29 19:15:34 +00:00
|
|
|
|
|
|
|
//publishing {
|
|
|
|
// publications {
|
|
|
|
// maven(MavenPublication) {
|
|
|
|
// artifactId 'hirs-structs'
|
|
|
|
// from components.java
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
//}
|
2018-09-06 13:47:33 +00:00
|
|
|
|
|
|
|
|