11import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
22
33plugins {
4- id(" org.springframework.boot" ) version " 2.4.5 "
5- id(" io.spring.dependency-management" ) version " 1.0.11.RELEASE "
6- kotlin(" jvm" ) version " 1.4.32 "
7- kotlin(" plugin.spring" ) version " 1.4.32 "
4+ id(" org.springframework.boot" ) version " 3.0.3 "
5+ id(" io.spring.dependency-management" ) version " 1.1.0 "
6+ kotlin(" jvm" ) version " 1.7.22 "
7+ kotlin(" plugin.spring" ) version " 1.7.22 "
88}
99
1010group = " com.example.kotlin"
1111version = " 0.0.1-SNAPSHOT"
12- java.sourceCompatibility = JavaVersion .VERSION_11
12+ java.sourceCompatibility = JavaVersion .VERSION_17
13+
1314
1415repositories {
1516 mavenCentral()
16- jcenter()
17- maven { url = uri(" https://repo.spring.io/milestone" ) }
1817}
1918
2019dependencies {
20+ implementation(" org.springframework.boot:spring-boot-starter" )
2121 implementation(" org.springframework.boot:spring-boot-starter-actuator" )
2222 implementation(" org.springframework.boot:spring-boot-starter-thymeleaf" )
2323 implementation(" org.springframework.boot:spring-boot-starter-web" )
@@ -31,6 +31,7 @@ dependencies {
3131 testImplementation(" org.springframework.boot:spring-boot-starter-test" ) {
3232 exclude(group = " org.junit.vintage" , module = " junit-vintage-engine" )
3333 }
34+
3435}
3536
3637tasks.withType<Test > {
@@ -40,6 +41,6 @@ tasks.withType<Test> {
4041tasks.withType<KotlinCompile > {
4142 kotlinOptions {
4243 freeCompilerArgs = listOf (" -Xjsr305=strict" )
43- jvmTarget = " 11 "
44+ jvmTarget = " 17 "
4445 }
4546}
0 commit comments