Skip to content

Commit b56f212

Browse files
committed
Finish moving to type-safe dependency notation
1 parent 47393a6 commit b56f212

File tree

5 files changed

+18
-12
lines changed

5 files changed

+18
-12
lines changed

docs/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ dependencies {
1414
testImplementation(libs.assertJCore)
1515
testImplementation(libs.mockitoCore)
1616
testImplementation(libs.springTest)
17-
testCompileOnly("org.hamcrest:hamcrest:2.2")
17+
testCompileOnly(libs.hamcrest) // Needed for Spring mock MVC matchers
1818
}
1919

2020
tasks.named<AsciidoctorTask>("asciidoctor").configure {

integration-tests/build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ dependencies {
66
implementation(project(":spring-webmvc-annotated-data-binder"))
77
implementation(project(":spring-webflux-annotated-data-binder"))
88
implementation(libs.javaxServletApi)
9-
implementation("org.hibernate.validator:hibernate-validator:6.0.19.Final")
10-
implementation("org.glassfish:javax.el:3.0.1-b09")
11-
implementation("com.fasterxml.jackson.core:jackson-databind:2.11.2")
9+
implementation(libs.hibernateValidator)
10+
implementation(libs.glassfishJavaxEl) // Needed by Hibernate Validator
11+
implementation(libs.jacksonDatabind)
1212

1313
testImplementation(libs.junitJupiterApi)
1414
testImplementation(libs.assertJCore)
1515
testImplementation(libs.springTest)
16-
testCompileOnly("org.hamcrest:hamcrest:2.2")
16+
testCompileOnly(libs.hamcrest) // Needed for Spring mock MVC matchers
1717
}
1818

1919
tasks.named<JavaCompile>("compileJava").configure {

libs.versions.toml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
[versions]
2-
spring = "5.3.13" # Used in java-conventions.gradle.kts
2+
spring = "5.3.27" # Used in java-conventions.gradle.kts
33
springBoot = "2.4.13" # Used in java-conventions.gradle.kts
4-
junit = "5.6.1" # Used in java-conventions.gradle.kts
4+
junit = "5.9.3" # Used in java-conventions.gradle.kts
55

66
[libraries]
77
javaxServletApi = { module = "javax.servlet:javax.servlet-api", version = "3.1.0" }
8+
javaxValidationApi = { module = "javax.validation:validation-api", version = "2.0.1.Final" }
89

910
findbugsJsr305 = { module = "com.google.code.findbugs:jsr305", version = "3.0.2" }
1011

@@ -18,10 +19,15 @@ springWebmvc = { module = "org.springframework:spring-webmvc", version.ref = "sp
1819
springBootStarter = { module = "org.springframework.boot:spring-boot-starter", version.ref = "springBoot" }
1920
springBootTest = { module = "org.springframework.boot:spring-boot-test", version.ref = "springBoot" }
2021

22+
glassfishJavaxEl = { module = "org.glassfish:javax.el", version = "3.0.1-b12" } # Needed by Hibernate Validator
23+
hibernateValidator = { module = "org.hibernate.validator:hibernate-validator", version = "6.0.21.Final" }
24+
jacksonDatabind = { module = "com.fasterxml.jackson.core:jackson-databind", version = "2.12.7.1" }
25+
2126
junitJupiterApi = { module = "org.junit.jupiter:junit-jupiter-api", version.ref = "junit" }
22-
assertJCore = { module = "org.assertj:assertj-core", version = "3.15.0" }
23-
mockitoCore = { module = "org.mockito:mockito-core", version = "3.3.3" }
24-
equalsVerifier = { module = "nl.jqno.equalsverifier:equalsverifier", version = "3.10" }
27+
assertJCore = { module = "org.assertj:assertj-core", version = "3.24.2" }
28+
mockitoCore = { module = "org.mockito:mockito-core", version = "5.3.1" }
29+
equalsVerifier = { module = "nl.jqno.equalsverifier:equalsverifier", version = "3.14.2" }
30+
hamcrest = { module = "org.hamcrest:hamcrest", version = "2.2" }
2531

2632
[plugins]
2733
asciidoctor = { id = "org.asciidoctor.jvm.convert", version = "2.4.0" }

spring-webflux-annotated-data-binder/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ dependencies {
1212
testImplementation(libs.assertJCore)
1313
testImplementation(libs.mockitoCore)
1414
testImplementation(libs.springTest)
15-
testImplementation("javax.validation:validation-api:2.0.1.Final")
15+
testImplementation(libs.javaxValidationApi) // Used to test validation annotations
1616
testCompileOnly(libs.findbugsJsr305) // To Prevent warnings on missing enum constants
1717
}
1818

spring-webmvc-annotated-data-binder/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ dependencies {
1313
testImplementation(libs.assertJCore)
1414
testImplementation(libs.mockitoCore)
1515
testImplementation(libs.springTest)
16-
testImplementation("javax.validation:validation-api:2.0.1.Final")
16+
testImplementation(libs.javaxValidationApi) // Used to test validation annotations
1717
testCompileOnly(libs.findbugsJsr305) // To Prevent warnings on missing enum constants
1818
}
1919

0 commit comments

Comments
 (0)