diff --git a/build.gradle b/build.gradle index 737e6b0..5ad8b07 100644 --- a/build.gradle +++ b/build.gradle @@ -2,9 +2,10 @@ plugins { id 'pmd' id 'checkstyle' id 'io.spring.dependency-management' version '1.1.0' - id 'org.springframework.boot' version '3.0.1' + id 'org.springframework.boot' version '3.1.0' id 'org.owasp.dependencycheck' version '8.2.1' - id 'com.github.ben-manes.versions' version '0.44.0' + id 'com.github.ben-manes.versions' version '0.46.0' + id 'se.patrikerdes.use-latest-versions' version '0.2.18' id 'java-library' id 'maven-publish' id 'au.com.dius.pact' version '4.6.0' @@ -36,12 +37,12 @@ sourceSets { checkstyle { maxWarnings = 0 - toolVersion = '8.18' + toolVersion = '10.12.0' configDirectory = new File(rootDir, 'config/checkstyle') } pmd { - toolVersion = "6.53.0" + toolVersion = "6.55.0" ignoreFailures = false sourceSets = [sourceSets.main, sourceSets.test, sourceSets.integrationTest] reportsDir = file("$project.buildDir/reports/pmd") @@ -85,12 +86,12 @@ task printVersion { } task sourcesJar(type: Jar, dependsOn: classes) { - classifier = 'sources' + archiveClassifier = 'sources' from sourceSets.main.allSource } task javadocJar(type: Jar, dependsOn: javadoc) { - classifier = 'javadoc' + archiveClassifier = 'javadoc' from javadoc.destinationDir } @@ -147,7 +148,7 @@ publishing { dependencies { implementation group: 'org.springframework.boot', name: 'spring-boot-starter-actuator' implementation group: 'org.springframework.cloud', name: 'spring-cloud-starter-openfeign', version: '4.0.3' - implementation group: 'io.github.openfeign', name: 'feign-jackson', version: '12.1' + implementation group: 'io.github.openfeign', name: 'feign-jackson', version: '12.3' implementation group: 'com.warrenstrange', name: 'googleauth', version: '1.5.0' implementation group: 'com.auth0', name: 'java-jwt', version: '4.4.0' implementation group: 'jakarta.servlet', name: 'jakarta.servlet-api', version: '6.0.0' @@ -155,7 +156,7 @@ dependencies { testImplementation group: 'junit', name: 'junit', version: '4.13.2' testImplementation group: 'org.assertj', name: 'assertj-core', version: '3.24.2' - testImplementation group: 'org.mockito', name: 'mockito-core', version: '4.11.0' + testImplementation group: 'org.mockito', name: 'mockito-core', version: '5.3.1' integrationTestImplementation sourceSets.main.runtimeClasspath @@ -166,9 +167,9 @@ dependencies { contractTestImplementation group: 'au.com.dius.pact.consumer', name: 'junit5', version: '4.6.0' contractTestRuntimeOnly group: 'au.com.dius.pact.consumer', name: 'junit5', version: '4.6.0' contractTestImplementation group: 'org.springframework.boot', name: 'spring-boot-starter-test' - contractTestImplementation("org.junit.jupiter:junit-jupiter-api:5.9.1") + contractTestImplementation("org.junit.jupiter:junit-jupiter-api:5.9.3") contractTestRuntimeOnly ("org.junit.jupiter:junit-jupiter-engine:5.9.3") - contractTestImplementation('org.junit.jupiter:junit-jupiter-api:5.9.0') + contractTestImplementation('org.junit.jupiter:junit-jupiter-api:5.9.3') contractTestImplementation sourceSets.main.runtimeClasspath contractTestImplementation sourceSets.test.runtimeClasspath diff --git a/config/checkstyle/checkstyle.xml b/config/checkstyle/checkstyle.xml index 706944e..df6ac30 100644 --- a/config/checkstyle/checkstyle.xml +++ b/config/checkstyle/checkstyle.xml @@ -1,7 +1,7 @@ + "-//Checkstyle//DTD Checkstyle Configuration 1.3//EN" + "https://checkstyle.org/dtds/configuration_1_3.dtd"> - - - - - + + + + + @@ -50,10 +49,6 @@ - - - - @@ -79,7 +74,6 @@ - @@ -144,11 +138,6 @@ - - - - + @@ -241,13 +231,9 @@ value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, METHOD_DEF, CTOR_DEF, VARIABLE_DEF"/> - - - - diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar index 943f0cb..c1962a7 100644 Binary files a/gradle/wrapper/gradle-wrapper.jar and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 5083229..37aef8d 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip networkTimeout=10000 zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/gradlew b/gradlew index 65dcd68..aeb74cb 100755 --- a/gradlew +++ b/gradlew @@ -85,9 +85,6 @@ done APP_BASE_NAME=${0##*/} APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit -# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' - # Use the maximum available, or set MAX_FD != -1 to use that value. MAX_FD=maximum @@ -144,7 +141,7 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then case $MAX_FD in #( max*) # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. - # shellcheck disable=SC3045 + # shellcheck disable=SC3045 MAX_FD=$( ulimit -H -n ) || warn "Could not query maximum file descriptor limit" esac @@ -152,7 +149,7 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then '' | soft) :;; #( *) # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. - # shellcheck disable=SC3045 + # shellcheck disable=SC3045 ulimit -n "$MAX_FD" || warn "Could not set maximum file descriptor limit to $MAX_FD" esac @@ -197,6 +194,10 @@ if "$cygwin" || "$msys" ; then done fi + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + # Collect all arguments for the java command; # * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of # shell script including quotes and variable substitutions, so put them in diff --git a/src/integrationTest/java/uk/gov/hmcts/reform/authorisation/ServiceAuthorisationApiTest.java b/src/integrationTest/java/uk/gov/hmcts/reform/authorisation/ServiceAuthorisationApiTest.java index 500b660..f48b2ec 100644 --- a/src/integrationTest/java/uk/gov/hmcts/reform/authorisation/ServiceAuthorisationApiTest.java +++ b/src/integrationTest/java/uk/gov/hmcts/reform/authorisation/ServiceAuthorisationApiTest.java @@ -43,7 +43,7 @@ @EnableAutoConfiguration @EnableConfigurationProperties() @TestPropertySource(properties = { - "idam.s2s-authorised.services=service1,service1", + "idam.s2s-authorised.services=service1,service1", }) @RunWith(SpringRunner.class) @SpringBootTest(classes = IntegrationTestInitializer.class)