1
1
plugins {
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'
7
7
}
8
8
9
9
group ' com.ashu.practice'
10
- version ' 5 .0.0'
10
+ version ' 6 .0.0'
11
11
12
- sourceCompatibility = ' 17 '
13
-
14
- repositories {
15
- mavenCentral()
12
+ java {
13
+ toolchain {
14
+ languageVersion = JavaLanguageVersion . of( 21 )
15
+ }
16
16
}
17
17
18
18
configurations {
19
- compileOnly {
20
- extendsFrom annotationProcessor
21
- }
19
+ compileOnly {
20
+ extendsFrom annotationProcessor
21
+ }
22
+ }
23
+
24
+ repositories {
25
+ mavenCentral()
22
26
}
23
27
24
28
dependencies {
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'
34
39
}
35
40
36
41
tasks. named(' test' ) {
37
- useJUnitPlatform()
42
+ useJUnitPlatform()
38
43
}
39
44
40
45
41
46
jar {
42
- enabled = false
47
+ enabled = false
43
48
}
44
49
45
50
docker {
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
50
55
// tag 'latest', "${project.parent.version}"
51
56
// noCache true
52
57
}
53
58
54
59
55
60
idea {
56
- module {
57
- downloadJavadoc = true
58
- downloadSources = true
59
- }
61
+ module {
62
+ downloadJavadoc = true
63
+ downloadSources = true
64
+ }
60
65
}
0 commit comments