diff --git a/build.gradle b/build.gradle index fe1c9e2f9d8d..339abaed3836 100644 --- a/build.gradle +++ b/build.gradle @@ -306,7 +306,7 @@ dependencies { implementation "org.springframework.security:spring-security-oauth2-core:${spring_security_version}" implementation "org.springframework.security:spring-security-oauth2-client:${spring_security_version}" // use newest version of nimbus-jose-jwt to avoid security issues through outdated dependencies - implementation "com.nimbusds:nimbus-jose-jwt:9.48" + implementation "com.nimbusds:nimbus-jose-jwt:10.0.1" implementation "org.springframework.security:spring-security-oauth2-jose:${spring_security_version}" implementation "org.springframework.security:spring-security-crypto:${spring_security_version}" @@ -400,7 +400,7 @@ dependencies { testImplementation "org.springframework.boot:spring-boot-starter-test:${spring_boot_version}" testImplementation "org.springframework.security:spring-security-test:${spring_security_version}" testImplementation "org.springframework.boot:spring-boot-test:${spring_boot_version}" - testImplementation "org.assertj:assertj-core:3.27.0" + testImplementation "org.assertj:assertj-core:3.27.2" testImplementation "org.mockito:mockito-core:${mockito_version}" testImplementation "org.mockito:mockito-junit-jupiter:${mockito_version}" @@ -420,7 +420,7 @@ dependencies { testImplementation "com.h2database:h2:2.2.224" // Lightweight JSON library needed for the internals of the MockRestServiceServer - testImplementation "org.json:json:20240303" + testImplementation "org.json:json:20241224" // NOTE: make sure this corresponds to the version used for JUnit in the testImplementation testRuntimeOnly "org.junit.platform:junit-platform-launcher:${junit_platform_version}" diff --git a/gradle.properties b/gradle.properties index 646b23dcf6fa..37430dbcce1e 100644 --- a/gradle.properties +++ b/gradle.properties @@ -28,7 +28,7 @@ jplag_version=5.1.0 # NOTE: we cannot need to use the latest version 9.x or 10.x here as long as Stanford CoreNLP does not reference it lucene_version=8.11.4 slf4j_version=2.0.16 -sentry_version=7.19.1 +sentry_version=7.20.0 liquibase_version=4.30.0 docker_java_version=3.4.1 logback_version=1.5.15 @@ -41,7 +41,7 @@ mysql_version=9.1.0 # make sure both versions are compatible junit_version=5.11.3 junit_platform_version=1.11.4 -mockito_version=5.14.2 +mockito_version=5.15.2 testcontainer_version=1.20.4 # gradle plugin version diff --git a/src/main/resources/templates/java/test/gradle/projectTemplate/build.gradle b/src/main/resources/templates/java/test/gradle/projectTemplate/build.gradle index b099c0b33b67..611ce8468738 100644 --- a/src/main/resources/templates/java/test/gradle/projectTemplate/build.gradle +++ b/src/main/resources/templates/java/test/gradle/projectTemplate/build.gradle @@ -115,17 +115,15 @@ configurations { behaviorTestRuntime.extendsFrom testRuntime } -task structuralTests(type: Test) { +tasks.register('structuralTests', Test) { testClassesDirs = sourceSets.structuralTest.output.classesDirs classpath += sourceSets.structuralTest.runtimeClasspath - useJUnitPlatform() } -task behaviorTests(type: Test) { +tasks.register('behaviorTests', Test) { testClassesDirs = sourceSets.behaviorTest.output.classesDirs classpath += sourceSets.behaviorTest.runtimeClasspath - useJUnitPlatform() } // %sequential-stop%