11plugins {
2- id ' java'
3- id ' org.springframework.boot' version ' 3.0.5 '
4- id ' io.spring.dependency-management' version ' 1.1.0 '
5- id ' idea'
6- id ' com.palantir.docker' version ' 0.35 .0'
2+ id ' java'
3+ id ' org.springframework.boot' version ' 3.3.0 '
4+ id ' io.spring.dependency-management' version ' 1.1.5 '
5+ id ' idea'
6+ id ' com.palantir.docker' version ' 0.36 .0'
77}
88
99group ' com.ashu.practice'
10- version ' 5 .0.0'
10+ version ' 6 .0.0'
1111
12- sourceCompatibility = ' 17 '
13-
14- repositories {
15- mavenCentral()
12+ java {
13+ toolchain {
14+ languageVersion = JavaLanguageVersion . of( 21 )
15+ }
1616}
1717
1818configurations {
19- compileOnly {
20- extendsFrom annotationProcessor
21- }
19+ compileOnly {
20+ extendsFrom annotationProcessor
21+ }
22+ }
23+
24+ repositories {
25+ mavenCentral()
2226}
2327
2428dependencies {
25- implementation ' org.springframework.boot:spring-boot-starter-actuator'
26- implementation ' org.springframework.boot:spring-boot-starter-web'
27- implementation ' org.springframework.boot:spring-boot-starter-data-jpa'
28- runtimeOnly ' com.mysql:mysql-connector-j'
29- compileOnly ' org.projectlombok:lombok'
30- annotationProcessor ' org.springframework.boot:spring-boot-configuration-processor'
31- annotationProcessor ' org.projectlombok:lombok'
32- testImplementation ' org.springframework.boot:spring-boot-starter-test'
33- testImplementation ' com.h2database:h2'
29+ implementation ' org.springframework.boot:spring-boot-starter-actuator'
30+ implementation ' org.springframework.boot:spring-boot-starter-web'
31+ implementation ' org.springframework.boot:spring-boot-starter-data-jpa'
32+ runtimeOnly ' com.mysql:mysql-connector-j'
33+ compileOnly ' org.projectlombok:lombok'
34+ annotationProcessor ' org.springframework.boot:spring-boot-configuration-processor'
35+ annotationProcessor ' org.projectlombok:lombok'
36+ testImplementation ' org.springframework.boot:spring-boot-starter-test'
37+ testImplementation ' com.h2database:h2'
38+ testRuntimeOnly ' org.junit.platform:junit-platform-launcher'
3439}
3540
3641tasks. named(' test' ) {
37- useJUnitPlatform()
42+ useJUnitPlatform()
3843}
3944
4045
4146jar {
42- enabled = false
47+ enabled = false
4348}
4449
4550docker {
46- dependsOn bootJar
47- name " ashutoshsahoo/${ project.name} :latest"
48- buildArgs([JAR_FILE : " ${ project.name} -${ project.version} .jar" , VERSION : " ${ project.version} " ])
49- files bootJar
51+ dependsOn bootJar
52+ name " ashutoshsahoo/${ project.name} :latest"
53+ buildArgs([JAR_FILE : " ${ project.name} -${ project.version} .jar" , VERSION : " ${ project.version} " ])
54+ files bootJar
5055// tag 'latest', "${project.parent.version}"
5156// noCache true
5257}
5358
5459
5560idea {
56- module {
57- downloadJavadoc = true
58- downloadSources = true
59- }
61+ module {
62+ downloadJavadoc = true
63+ downloadSources = true
64+ }
6065}
0 commit comments