@@ -5,17 +5,17 @@ buildscript {
55 mavenCentral()
66 }
77 dependencies {
8- classpath(" com.h2database:h2:1.4.200 " )
8+ classpath(libs.jdbc.h2 )
99 }
1010}
1111
1212plugins {
1313 id(" application" )
14- id( " com.diffplug .spotless" ) version " 7.0.3 "
15- id( " org.domaframework .doma.codegen" ) version " 3.0.0 "
16- id( " org.domaframework .doma.compile" ) version " 3.0.1 "
17- kotlin( " jvm " ) version " 2.1.20 "
18- kotlin( " kapt " ) version " 2.1.20 "
14+ alias(libs.plugins .spotless)
15+ alias(libs.plugins .doma.codegen)
16+ alias(libs.plugins .doma.compile)
17+ alias(libs.plugins.kotlin.jvm)
18+ alias(libs.plugins.kotlin.kapt)
1919}
2020
2121kotlin {
@@ -28,17 +28,16 @@ application {
2828}
2929
3030dependencies {
31- val domaVersion: String by project
32- kapt(" org.seasar.doma:doma-processor:$domaVersion " )
33- implementation(" org.seasar.doma:doma-kotlin:$domaVersion " )
34- implementation(" org.seasar.doma:doma-slf4j:$domaVersion " )
35- runtimeOnly(" ch.qos.logback:logback-classic:1.5.18" )
36- runtimeOnly(" com.h2database:h2:1.4.200" )
31+ kapt(libs.doma.processor)
32+ implementation(libs.doma.kotlin)
33+ implementation(libs.doma.slf4j)
34+ runtimeOnly(libs.logback.classic)
35+ runtimeOnly(libs.jdbc.h2)
3736 // Use JUnit BOM for version management
38- testImplementation(platform(" org .junit:junit-bom:5.12.2 " ))
39- testImplementation(" org .junit.jupiter:junit-jupiter- api" )
40- testRuntimeOnly(" org .junit.jupiter:junit-jupiter- engine" )
41- testRuntimeOnly(" org .junit.platform:junit-platform- launcher" )
37+ testImplementation(platform(libs .junit.bom ))
38+ testImplementation(libs .junit.jupiter. api)
39+ testRuntimeOnly(libs .junit.jupiter. engine)
40+ testRuntimeOnly(libs .junit.platform. launcher)
4241}
4342
4443repositories {
@@ -49,7 +48,7 @@ repositories {
4948
5049spotless {
5150 kotlin {
52- ktlint(" 1.1.1 " )
51+ ktlint(libs.versions.ktlint.get() )
5352 trimTrailingWhitespace()
5453 endWithNewline()
5554 }
0 commit comments