object Versions { const val springBoot = "3.4.3" const val springDependencyManagement = "1.1.7" const val kotlinJvm = "1.9.25" const val kotlinPluginSpring = "1.9.25" } plugins { kotlin("jvm") version "1.9.25" kotlin("plugin.spring") version "1.9.25" id("io.spring.dependency-management") version "1.1.7" } group = "com.example" version = "0.0.1-SNAPSHOT" java { toolchain { languageVersion = JavaLanguageVersion.of(21) } } repositories { mavenCentral() } subprojects { apply(plugin = "java") apply(plugin = "org.jetbrains.kotlin.jvm") repositories { mavenCentral() } dependencies { implementation(platform("org.springframework.boot:spring-boot-dependencies:${Versions.springBoot}")) } } dependencyManagement { imports { mavenBom("org.springframework.boot:spring-boot-dependencies:${Versions.springBoot}") } } kotlin { compilerOptions { freeCompilerArgs.addAll("-Xjsr305=strict") } } tasks.withType { useJUnitPlatform() }