11plugins {
2- id(" java" )
32 application
4- id(" org.springframework.boot" ) version " 2.6.1"
3+ id(" java" )
4+ id(" org.springframework.boot" ) version " 3.2.2"
55 id(" io.spring.dependency-management" ) version " 1.0.11.RELEASE"
66 id(" com.diffplug.spotless" ) version " 5.9.0"
77}
@@ -14,11 +14,13 @@ repositories {
1414}
1515
1616application {
17- mainClassName = " com.crapi.CRAPIBootApplication"
17+ mainClass.set( " com.crapi.CRAPIBootApplication" )
1818}
1919
20- java.sourceCompatibility = JavaVersion .VERSION_11
21-
20+ java {
21+ sourceCompatibility = JavaVersion .VERSION_17
22+ targetCompatibility = JavaVersion .VERSION_17
23+ }
2224pluginManager.withPlugin(" java" ) {
2325 apply (plugin = " com.diffplug.spotless" )
2426 configure< com.diffplug.gradle.spotless.SpotlessExtension > {
@@ -32,39 +34,44 @@ pluginManager.withPlugin("java") {
3234 }
3335}
3436dependencies {
35- val lombokVersion = " 1.18.12"
36- val mockito = " 3.7.7"
37- val springBootVersion = " 2.6.1"
37+ val lombokVersion = " 1.18.30"
38+ val mockito = " 5.2.0"
39+ val springBootVersion = " 3.2.2"
40+ val springSecurityVersion = " 6.0.3"
3841 val log4jVersion = " 2.14.0"
3942 compileOnly(" org.projectlombok:lombok:${lombokVersion} " )
4043 testCompileOnly(" org.projectlombok:lombok:${lombokVersion} " )
4144 annotationProcessor(" org.projectlombok:lombok:${lombokVersion} " )
42- annotationProcessor(" javax .annotation:javax .annotation-api:1.3.2 " )
45+ annotationProcessor(" jakarta .annotation:jakarta .annotation-api:2.1.1 " )
4346 annotationProcessor(" org.springframework.boot:spring-boot-configuration-processor" )
44- testImplementation( " org.projectlombok:lombok: ${lombokVersion} " )
47+ annotationProcessor( " jakarta.xml.bind:jakarta.xml.bind-api:4.0.1 " )
4548 testAnnotationProcessor(" org.projectlombok:lombok-mapstruct-binding:0.2.0" )
46- implementation(" org.springframework.boot:spring-boot-starter:${springBootVersion} " )
47- implementation(" org.springframework.boot:spring-boot-starter-web:${springBootVersion} " )
48- implementation(" org.springframework.boot:spring-boot-starter-security:${springBootVersion} " )
49- implementation(" org.springframework.boot:spring-boot-starter-data-jpa:${springBootVersion} " )
49+ implementation(" jakarta.xml.bind:jakarta.xml.bind-api:4.0.1" )
50+ implementation(" org.springframework.boot:spring-boot-starter:${springBootVersion} " )
51+ implementation(" org.springframework.boot:spring-boot-starter-web:${springBootVersion} " )
52+ implementation(" org.springframework.boot:spring-boot-starter-security:${springBootVersion} " )
53+ implementation(" org.springframework.boot:spring-boot-starter-data-jpa:${springBootVersion} " )
5054 implementation(" org.springframework.boot:spring-boot-starter-mail:${springBootVersion} " )
51- implementation(" org.springframework.boot:spring-boot-starter-validation:${springBootVersion} " )
52- testImplementation (" org.springframework.boot :spring-boot-starter-test :${springBootVersion } " )
53- implementation(" io.jsonwebtoken:jjwt:0.9.1 " )
54- implementation(" com.nimbusds:nimbus-jose-jwt:9.25.6 " )
55- implementation(" javax .validation:validation-api:2 .0.1.Final " )
55+ implementation(" org.springframework.boot:spring-boot-starter-validation:${springBootVersion} " )
56+ implementation (" org.springframework.security :spring-security-config :${springSecurityVersion } " )
57+ implementation(" io.jsonwebtoken:jjwt:0.12.5 " )
58+ implementation(" com.nimbusds:nimbus-jose-jwt:9.37.3 " )
59+ implementation(" jakarta .validation:jakarta. validation-api:3 .0.2 " )
5660 implementation(" org.postgresql:postgresql:runtime" )
5761 implementation(" org.postgresql:postgresql:42.4.0" )
5862 implementation(" com.google.cloud:google-cloud-storage:2.10.0" )
5963 implementation(" org.apache.logging.log4j:log4j-api:${log4jVersion} " )
6064 implementation(" org.apache.logging.log4j:log4j-core:${log4jVersion} " )
6165 implementation(" org.apache.logging.log4j:log4j-web:${log4jVersion} " )
62- implementation(" com.google.cloud:libraries-bom:25.4 .0" )
66+ implementation(" com.google.cloud:libraries-bom:26.32 .0" )
6367 implementation(" org.apache.httpcomponents:httpclient:4.5.13" )
6468 implementation(" com.google.cloud:google-cloud-storage:2.10.0" )
69+ implementation(" org.apache.httpcomponents.client5:httpclient5:5.3" )
70+ testImplementation(" org.springframework.boot:spring-boot-starter-test:${springBootVersion} " )
71+ testImplementation(" org.projectlombok:lombok:${lombokVersion} " )
6572 testImplementation(" org.mockito:mockito-junit-jupiter:${mockito} " )
6673 testImplementation(" org.mockito:mockito-core:${mockito} " )
6774 testImplementation(" org.mockito:mockito-inline:${mockito} " )
68- testImplementation(" junit:junit:4.13.1 " )
75+ testImplementation(" junit:junit:4.13.2 " )
6976 // implementation("org.apache.logging.log4j:log4j-slf4j-impl:${log4jVersion}")
7077}
0 commit comments