-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
89 lines (73 loc) · 2.09 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
val springVersion: String by project
val lombokVersion: String by project
val queryDslVersion: String by project
plugins {
id("java")
id("jacoco")
id("io.spring.dependency-management")
id("com.diffplug.spotless")
id("com.github.andygoossens.gradle-modernizer-plugin")
}
subprojects {
apply(plugin = "jacoco")
apply(plugin = "java-library")
apply(plugin = "io.spring.dependency-management")
apply(plugin = "com.github.andygoossens.gradle-modernizer-plugin")
dependencies {
annotationProcessor("org.projectlombok:lombok:${lombokVersion}")
compileOnly("org.projectlombok:lombok:${lombokVersion}")
}
dependencyManagement {
imports {
mavenBom("com.querydsl:querydsl-bom:${queryDslVersion}")
mavenBom("org.springframework.boot:spring-boot-dependencies:${springVersion}")
}
dependencies{
dependency("org.apache.commons:commons-csv:1.11.0")
dependency("io.hypersistence:hypersistence-utils-hibernate-62:3.7.6")
dependency("com.google.guava:guava:33.3.1-jre")
}
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
tasks.test {
useJUnitPlatform()
testLogging {
showExceptions = true
showCauses = true
showStackTraces = true
}
}
tasks.register("cleanResources") {
delete("${layout.buildDirectory}/resources")
}
tasks.compileJava {
dependsOn("cleanResources")
}
// tasks.withType<KotlinCompile> {
// kotlinOptions {
// freeCompilerArgs += "-Xjsr305=strict"
// jvmTarget = "21"
// }
// }
}
allprojects {
group = "org.transitclock"
version = "3.0.0-SNAPSHOT"
configurations.all {
resolutionStrategy.cacheChangingModulesFor(0, "minutes")
}
repositories {
mavenCentral()
mavenLocal()
}
modernizer {
failOnViolations = true
includeTestClasses = true
}
}
tasks.wrapper {
gradleVersion = "8.3"
}