1
1
plugins {
2
2
`java- library`
3
+ alias(libs.plugins.test.logger)
3
4
}
4
5
5
6
dependencies {
6
- implementation(" org.springframework.boot:spring-boot:${project.extra[" springBootVersion" ]} " )
7
- implementation(" org.springframework.boot:spring-boot-autoconfigure:${project.extra[" springBootVersion" ]} " )
8
- implementation(" org.springframework.boot:spring-boot-starter-jdbc:${project.extra[" springBootVersion" ]} " )
7
+ implementation(platform(libs.spring.boot.dependencies))
8
+ annotationProcessor(platform(libs.spring.boot.dependencies))
9
+ compileOnly(platform(libs.spring.boot.dependencies))
10
+ testImplementation(platform(libs.spring.boot.dependencies))
9
11
10
- annotationProcessor(" org.springframework.boot:spring-boot-configuration-processor:${project.extra[" springBootVersion" ]} " )
12
+ implementation(libs.spring.boot)
13
+ implementation(libs.spring.boot.autoconfigure)
14
+ implementation(libs.spring.boot.starter.jdbc)
11
15
12
- compileOnly(" org.apache.commons:commons-dbcp2:2.9.0" )
13
- compileOnly(" org.apache.tomcat:tomcat-jdbc:10.1.5" )
14
- compileOnly(" com.zaxxer:HikariCP:5.0.1" )
16
+ annotationProcessor(libs.spring.boot.configuration.processor)
15
17
16
- compileOnly(" p6spy:p6spy:${project.extra[" p6SpyVersion" ]} " )
17
- compileOnly(" net.ttddyy:datasource-proxy:${project.extra[" datasourceProxyVersion" ]} " )
18
- compileOnly(" com.vladmihalcea.flexy-pool:flexy-pool-core:${project.extra[" flexyPoolVersion" ]} " )
19
- compileOnly(" com.vladmihalcea.flexy-pool:flexy-dbcp2:${project.extra[" flexyPoolVersion" ]} " )
20
- compileOnly(" com.vladmihalcea.flexy-pool:flexy-hikaricp:${project.extra[" flexyPoolVersion" ]} " )
21
- compileOnly(" com.vladmihalcea.flexy-pool:flexy-tomcatcp:${project.extra[" flexyPoolVersion" ]} " )
22
- compileOnly(" com.vladmihalcea.flexy-pool:flexy-micrometer-metrics:${project.extra[" flexyPoolVersion" ]} " )
18
+ compileOnly(libs.commons.dbcp2)
19
+ compileOnly(libs.tomcat.jdbc)
20
+ compileOnly(libs.hikari.cp)
23
21
24
- compileOnly(" org.springframework.boot:spring-boot-starter-actuator:${project.extra[" springBootVersion" ]} " )
22
+ compileOnly(libs.p6spy)
23
+ compileOnly(libs.datasource.proxy)
24
+ compileOnly(libs.flexy.pool.core)
25
+ compileOnly(libs.flexy.pool.dbcp2)
26
+ compileOnly(libs.flexy.pool.hikaricp)
27
+ compileOnly(libs.flexy.pool.tomcatcp)
28
+ compileOnly(libs.flexy.pool.micrometer.metrics)
29
+
30
+ compileOnly(libs.spring.boot.starter.actuator)
25
31
26
32
// optional (compileOnly) dependencies for SQL formatting
27
- compileOnly(" org .hibernate:hibernate-core:6.1.6.Final " ) // should match the version managed by spring-boot
28
- compileOnly(" com.github.vertical-blank: sql-formatter:2.0.4 " )
33
+ compileOnly(libs .hibernate.core)
34
+ compileOnly(libs. sql.formatter )
29
35
30
- testImplementation(" com.h2database:h2:2.1.214 " )
31
- testImplementation(" org.springframework .boot:spring-boot- starter-test: ${project.extra[ " springBootVersion " ]} " )
36
+ testImplementation(libs.h2 )
37
+ testImplementation(libs.spring .boot. starter.test )
32
38
33
- testImplementation(" p6spy:p6spy: ${project.extra[ " p6SpyVersion " ]} " )
34
- testImplementation(" net.ttddyy: datasource-proxy: ${project.extra[ " datasourceProxyVersion " ]} " )
35
- testImplementation(" com.vladmihalcea. flexy- pool:flexy-pool-core: ${project.extra[ " flexyPoolVersion " ]} " )
36
- testImplementation(" com.vladmihalcea. flexy- pool:flexy-dbcp2: ${project.extra[ " flexyPoolVersion " ]} " )
37
- testImplementation(" com.vladmihalcea. flexy- pool:flexy-hikaricp: ${project.extra[ " flexyPoolVersion " ]} " )
38
- testImplementation(" com.vladmihalcea. flexy- pool:flexy-tomcatcp: ${project.extra[ " flexyPoolVersion " ]} " )
39
- testImplementation(" com.vladmihalcea. flexy- pool:flexy- micrometer-metrics: ${project.extra[ " flexyPoolVersion " ]} " )
39
+ testImplementation(libs.p6spy )
40
+ testImplementation(libs. datasource.proxy )
41
+ testImplementation(libs. flexy. pool.core )
42
+ testImplementation(libs. flexy. pool.dbcp2 )
43
+ testImplementation(libs. flexy. pool.hikaricp )
44
+ testImplementation(libs. flexy. pool.tomcatcp )
45
+ testImplementation(libs. flexy. pool. micrometer.metrics )
40
46
41
- testImplementation(" commons-dbcp:commons-dbcp:1.4 " )
42
- testImplementation(" org.apache. commons:commons-dbcp2:2.9.0 " )
43
- testImplementation(" org.apache. tomcat:tomcat-jdbc:10.1.5 " )
44
- testImplementation(" com.zaxxer:HikariCP:5.0.1 " )
45
- testImplementation(" org.flywaydb: flyway-core:9.5.1 " )
47
+ testImplementation(libs. commons.dbcp )
48
+ testImplementation(libs. commons.dbcp2 )
49
+ testImplementation(libs. tomcat.jdbc )
50
+ testImplementation(libs.hikari.cp )
51
+ testImplementation(libs. flyway.core )
46
52
}
47
53
48
54
tasks {
@@ -53,13 +59,16 @@ tasks {
53
59
withType<JavaCompile > {
54
60
options.compilerArgs.add(" -Xlint:unchecked" )
55
61
options.compilerArgs.add(" -Xlint:deprecation" )
62
+ options.encoding = " UTF-8"
63
+ }
64
+
65
+ javadoc {
66
+ val options = options as StandardJavadocDocletOptions
67
+ options.addBooleanOption(" html5" , true )
68
+ options.addStringOption(" Xdoclint:all,-missing" , " -quiet" )
56
69
}
57
70
58
71
test {
59
72
useJUnitPlatform()
60
- testLogging {
61
- events(" passed" , " skipped" , " failed" )
62
- exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat .FULL
63
- }
64
73
}
65
74
}
0 commit comments