-
-
Notifications
You must be signed in to change notification settings - Fork 79
/
build.gradle.kts
64 lines (52 loc) · 3.13 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
plugins {
`java-library`
}
dependencies {
implementation("org.springframework.boot:spring-boot:${project.extra["springBootVersion"]}")
implementation("org.springframework.boot:spring-boot-autoconfigure:${project.extra["springBootVersion"]}")
implementation("org.springframework.boot:spring-boot-starter-jdbc:${project.extra["springBootVersion"]}")
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor:${project.extra["springBootVersion"]}")
compileOnly("org.apache.commons:commons-dbcp2:2.9.0")
compileOnly("org.apache.tomcat:tomcat-jdbc:10.1.5")
compileOnly("com.zaxxer:HikariCP:5.0.1")
compileOnly("p6spy:p6spy:${project.extra["p6SpyVersion"]}")
compileOnly("net.ttddyy:datasource-proxy:${project.extra["datasourceProxyVersion"]}")
compileOnly("com.vladmihalcea.flexy-pool:flexy-pool-core:${project.extra["flexyPoolVersion"]}")
compileOnly("com.vladmihalcea.flexy-pool:flexy-dbcp2:${project.extra["flexyPoolVersion"]}")
compileOnly("com.vladmihalcea.flexy-pool:flexy-hikaricp:${project.extra["flexyPoolVersion"]}")
compileOnly("com.vladmihalcea.flexy-pool:flexy-tomcatcp:${project.extra["flexyPoolVersion"]}")
compileOnly("com.vladmihalcea.flexy-pool:flexy-micrometer-metrics:${project.extra["flexyPoolVersion"]}")
compileOnly("org.springframework.boot:spring-boot-starter-actuator:${project.extra["springBootVersion"]}")
// optional (compileOnly) dependencies for SQL formatting
compileOnly("org.hibernate:hibernate-core:6.1.6.Final") // should match the version managed by spring-boot
compileOnly("com.github.vertical-blank:sql-formatter:2.0.4")
testImplementation("com.h2database:h2:2.1.214")
testImplementation("org.springframework.boot:spring-boot-starter-test:${project.extra["springBootVersion"]}")
testImplementation("p6spy:p6spy:${project.extra["p6SpyVersion"]}")
testImplementation("net.ttddyy:datasource-proxy:${project.extra["datasourceProxyVersion"]}")
testImplementation("com.vladmihalcea.flexy-pool:flexy-pool-core:${project.extra["flexyPoolVersion"]}")
testImplementation("com.vladmihalcea.flexy-pool:flexy-dbcp2:${project.extra["flexyPoolVersion"]}")
testImplementation("com.vladmihalcea.flexy-pool:flexy-hikaricp:${project.extra["flexyPoolVersion"]}")
testImplementation("com.vladmihalcea.flexy-pool:flexy-tomcatcp:${project.extra["flexyPoolVersion"]}")
testImplementation("com.vladmihalcea.flexy-pool:flexy-micrometer-metrics:${project.extra["flexyPoolVersion"]}")
testImplementation("commons-dbcp:commons-dbcp:1.4")
testImplementation("org.apache.commons:commons-dbcp2:2.9.0")
testImplementation("org.apache.tomcat:tomcat-jdbc:10.1.5")
testImplementation("com.zaxxer:HikariCP:5.0.1")
}
tasks {
compileJava {
dependsOn(processResources)
}
withType<JavaCompile> {
options.compilerArgs.add("-Xlint:unchecked")
options.compilerArgs.add("-Xlint:deprecation")
}
test {
useJUnitPlatform()
testLogging {
events("passed", "skipped", "failed")
exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
}
}
}