Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Commit 6c753d2

Browse files
authored
Updated library versions and some factoring (#1106)
Co-authored-by: Shawn Sherwood <shawn-sher@users.noreply.github.com>
1 parent 9c61c0c commit 6c753d2

8 files changed

Lines changed: 65 additions & 142 deletions

File tree

build.gradle

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,25 @@ import com.github.spotbugs.snom.SpotBugsReport
1919
buildscript {
2020
ext {
2121
versions = [
22-
lombok: '1.18.24',
23-
resilience4j: '1.7.1',
24-
awsSdkVersion: '1.12.367',
25-
kork: '7.158.0',
22+
ant: '1.10.+',
23+
awsSdkVersion: '1.12.+',
24+
commonsIo: '2.11.0',
25+
groovy: '4.0.8',
2626
guava: '31.1-jre',
27-
springBoot: '2.7.5',
27+
jakartaXmlBindApi: '3.0.1',
28+
jaxbRuntime: '4.0.1',
2829
jjwt: '0.11.5',
29-
okta: '8.2.2',
30-
oktaAuthnSdk: '2.0.9',
31-
restAssured: '5.2.0',
32-
groovy: '4.0.6'
30+
kork: '7.160.2',
31+
lang3: '3.12.0',
32+
logback: '1.2.11',
33+
lombok: '1.18.26',
34+
mybatisSpring: '2.1.0',
35+
okta: '8.2.3',
36+
oktaAuthnSdk: '2.0.10',
37+
oktaJwtVerifier: '0.5.7',
38+
resilience4j: '1.7.1', // 2 requires java 17
39+
restAssured: '5.3.0',
40+
springBoot: '2.7.8',
3341
]
3442
}
3543

@@ -44,16 +52,15 @@ buildscript {
4452
}
4553

4654
dependencies {
47-
classpath "org.owasp:dependency-check-gradle:7.3.0"
48-
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.5"
55+
classpath "org.owasp:dependency-check-gradle:8.0.2"
4956
}
5057
}
5158

5259
plugins {
5360
id "io.spring.dependency-management" version "1.1.0"
5461
id "com.github.nbaztec.coveralls-jacoco" version "1.2.15"
5562
id "com.github.spotbugs" version "5.0.13"
56-
id "com.diffplug.spotless" version "6.11.0"
63+
id "com.diffplug.spotless" version "6.14.1"
5764
}
5865

5966
apply from: 'gradle/owasp-dependency-check.gradle'
@@ -125,8 +132,6 @@ allprojects {
125132
subprojects {
126133
apply plugin: 'io.spring.dependency-management'
127134

128-
apply from: file("${rootProject.projectDir}/gradle/bintray.gradle")
129-
130135
sourceCompatibility = '11'
131136

132137
sourceSets {
@@ -171,8 +176,8 @@ subprojects {
171176
// common test deps
172177
testImplementation "org.apache.groovy:groovy-all:${versions.groovy}"
173178
testImplementation 'org.spockframework:spock-core:2.3-groovy-4.0'
174-
testImplementation 'junit:junit:4.13.2'
175-
testImplementation group: 'org.mockito', name: 'mockito-all', version: '1.10.19'
179+
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.2'
180+
testImplementation 'org.mockito:mockito-all:1.10.19'
176181
testImplementation 'com.openpojo:openpojo:0.9.1'
177182
}
178183

@@ -228,8 +233,8 @@ configurations {
228233
}
229234

230235
dependencies {
231-
antJUnit 'org.apache.ant:ant-junit:1.10.12'
232-
runtimeOnly 'org.apache.ant:ant-antlr:1.10.12'
236+
antJUnit "org.apache.ant:ant-junit:${versions.ant}"
237+
runtimeOnly "org.apache.ant:ant-antlr:${versions.ant}"
233238

234239
}
235240

cerberus-api-tests/build.gradle

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -25,34 +25,31 @@ repositories {
2525

2626
configurations.all {
2727
resolutionStrategy {
28-
force 'org.apache.ant:ant:1.10.12'
28+
force "org.apache.ant:ant:${versions.ant}"
2929
}
3030
}
3131
dependencies {
3232
integrationTestImplementation project(':cerberus-core').sourceSets.test.output
33-
integrationTestImplementation group: 'org.testng', name: 'testng', version: '7.5'
34-
integrationTestImplementation 'junit:junit:4.13.2'
33+
integrationTestImplementation group: 'org.testng', name: 'testng', version: '7.7.1'
34+
integrationTestImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.2'
35+
3536
integrationTestImplementation 'org.slf4j:slf4j-api:1.7.36'
36-
integrationTestImplementation group: 'org.apache.groovy', name: 'groovy-all', version: versions.groovy
37+
integrationTestImplementation "org.apache.groovy:groovy-all:${versions.groovy}"
3738
integrationTestImplementation "io.rest-assured:rest-assured:${versions.restAssured}"
38-
integrationTestImplementation group: 'io.rest-assured', name: 'json-schema-validator', version: versions.restAssured
39-
integrationTestImplementation group: 'io.rest-assured', name: 'json-path', version: versions.restAssured
40-
integrationTestImplementation group: 'io.rest-assured', name: 'xml-path', version: versions.restAssured
41-
integrationTestImplementation group: 'javax.xml.bind', name: 'jaxb-api', version: '2.3.1'
42-
integrationTestImplementation group: 'org.glassfish.jaxb', name: 'jaxb-runtime', version: '3.0.2'
43-
integrationTestImplementation group: 'org.hamcrest', name: 'hamcrest', version: '2.2'
39+
integrationTestImplementation "io.rest-assured:json-schema-validator:${versions.restAssured}"
40+
integrationTestImplementation "io.rest-assured:json-path:${versions.restAssured}"
41+
integrationTestImplementation "io.rest-assured:xml-path:${versions.restAssured}"
42+
integrationTestImplementation "javax.xml.bind:jaxb-api:2.3.1"
43+
integrationTestImplementation "org.glassfish.jaxb:jaxb-runtime:${versions.jaxbRuntime}"
44+
integrationTestImplementation "org.hamcrest:hamcrest:2.2"
4445
integrationTestImplementation "com.google.guava:guava:${versions.guava}"
45-
integrationTestImplementation group: 'com.amazonaws', name: 'aws-java-sdk-kms', version: "${versions.awsSdkVersion}"
46-
integrationTestImplementation group: 'com.amazonaws', name: 'aws-java-sdk-sts', version: "${versions.awsSdkVersion}"
47-
integrationTestImplementation group: 'org.jboss.aerogear', name: 'aerogear-otp-java', version: '1.0.0'
48-
integrationTestImplementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.12.0'
49-
integrationTestImplementation group: 'com.thedeanda', name: 'lorem', version: '2.1'
50-
integrationTestImplementation "jakarta.xml.bind:jakarta.xml.bind-api:3.0.1"
51-
integrationTestImplementation "jakarta.xml.bind:jakarta.xml.bind-api:3.0.1"
52-
integrationTestImplementation "jakarta.xml.bind:jakarta.xml.bind-api:3.0.1"
53-
integrationTestImplementation "org.glassfish.jaxb:jaxb-runtime:3.0.2"
54-
integrationTestImplementation group: 'com.thedeanda', name: 'lorem', version: '2.1'
55-
integrationTestImplementation "org.apache.groovy:groovy-all:4.0.6"
46+
integrationTestImplementation "com.amazonaws:aws-java-sdk-kms:${versions.awsSdkVersion}"
47+
integrationTestImplementation "com.amazonaws:aws-java-sdk-sts:${versions.awsSdkVersion}"
48+
integrationTestImplementation "org.jboss.aerogear:aerogear-otp-java:1.0.0"
49+
integrationTestImplementation "org.apache.commons:commons-lang3:${versions.lang3}"
50+
integrationTestImplementation "com.thedeanda:lorem:2.1"
51+
integrationTestImplementation "jakarta.xml.bind:jakarta.xml.bind-api:${versions.jakartaXmlBindApi}"
52+
integrationTestImplementation "org.apache.groovy:groovy-all:${versions.groovy}"
5653
}
5754

5855
integrationTest {

cerberus-audit-logger-athena/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ dependencies {
2121
implementation "com.amazonaws:aws-java-sdk-s3:${versions.awsSdkVersion}"
2222
implementation "com.amazonaws:aws-java-sdk-athena:${versions.awsSdkVersion}"
2323

24-
implementation "commons-io:commons-io:2.11.0"
25-
implementation group: 'com.google.guava', name: 'guava', version: versions.guava
24+
implementation "commons-io:commons-io:${versions.commonsIo}"
25+
implementation "com.google.guava:guava:${versions.guava}"
2626

27-
implementation 'ch.qos.logback:logback-classic:1.2.11'
28-
implementation 'ch.qos.logback:logback-core:1.2.11'
27+
implementation "ch.qos.logback:logback-classic:${versions.logback}"
28+
implementation "ch.qos.logback:logback-core:${versions.logback}"
2929
}

cerberus-auth-connector-okta/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ dependencies {
2828
implementation group: 'com.google.guava', name: 'guava', version: "${versions.guava}"
2929

3030
// Okta jwt verfier libraries
31-
implementation 'com.okta.jwt:okta-jwt-verifier:0.5.7'
32-
implementation 'com.okta.jwt:okta-jwt-verifier-impl:0.5.7'
31+
implementation "com.okta.jwt:okta-jwt-verifier:${versions.oktaJwtVerifier}"
32+
implementation "com.okta.jwt:okta-jwt-verifier-impl:${versions.oktaJwtVerifier}"
3333
}

cerberus-core/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ dependencies {
3131
api 'com.github.ben-manes.caffeine:caffeine:3.1.1'
3232

3333
// TODO jav 8 -> java 11 error, verify and document why this is required
34-
api "jakarta.xml.bind:jakarta.xml.bind-api:3.0.1"
35-
api "org.glassfish.jaxb:jaxb-runtime:3.0.2"
34+
api "jakarta.xml.bind:jakarta.xml.bind-api:${versions.jakartaXmlBindApi}"
35+
api "org.glassfish.jaxb:jaxb-runtime:${versions.jaxbRuntime}"
3636

3737
// Find bugs annotations
38-
api group: 'com.google.code.findbugs', name: 'annotations', version: '3.0.1u2'
38+
api 'com.google.code.findbugs:annotations:3.0.1u2'
3939

40-
api group: 'com.google.guava', name: 'guava', version: '31.0.1-jre'
40+
api "com.google.guava:guava:${versions.guava}"
4141
}
4242

4343
configurations.all {

cerberus-domain/build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@ repositories {
1919
}
2020

2121
dependencies {
22-
api group: 'javax.validation', name: 'validation-api', version: '2.0.1.Final'
22+
api group: 'jakarta.validation', name: 'jakarta.validation-api', version: '2.0.2'
23+
2324
api group: 'org.hibernate', name: 'hibernate-validator', version: '7.0.5.Final'
2425
api group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: '2.11.1'
2526

26-
api group: 'org.apache.commons', name: 'commons-lang3', version: '3.12.0'
27+
api group: 'org.apache.commons', name: 'commons-lang3', version: versions.lang3
2728
api group: 'org.apache.commons', name: 'commons-text', version: '1.10.0'
2829

2930
integrationTestCompile "org.apache.groovy:groovy-all:${versions.groovy}"

cerberus-web/build.gradle

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616

1717
plugins {
18-
id 'org.springframework.boot' version "2.7.0"
18+
id 'org.springframework.boot' version "2.7.8"
1919
}
2020

2121
sourceCompatibility = '11'
@@ -40,25 +40,27 @@ dependencies {
4040
implementation "org.springframework.boot:spring-boot-starter-actuator:${versions.springBoot}"
4141
implementation "org.springframework.boot:spring-boot-starter-web:${versions.springBoot}"
4242
implementation "org.springframework.boot:spring-boot-starter-security:${versions.springBoot}"
43+
implementation "org.springframework.boot:spring-boot-starter:${versions.springBoot}"
44+
implementation "org.springframework.boot:spring-boot:${versions.springBoot}"
4345

4446
// DB: Mybatis, Flyway, C3p0
45-
implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:2.2.2'
46-
implementation 'org.mybatis:mybatis-spring:2.0.7'
47+
implementation "org.mybatis.spring.boot:mybatis-spring-boot-starter:${versions.mybatisSpring}"
48+
implementation "org.mybatis:mybatis-spring:${versions.mybatisSpring}"
4749
implementation 'org.mybatis:mybatis:3.5.11'
4850
implementation 'com.mchange:c3p0:0.9.5.5'
49-
implementation 'mysql:mysql-connector-java:8.0.31'
51+
implementation 'mysql:mysql-connector-java:8.0.32'
5052
implementation 'org.flywaydb:flyway-core:5.2.4' // Can't upgrade this past this version until Aurora is upgraded to 5.7
5153

5254
// First secrets
5355
implementation "io.spinnaker.kork:kork-secrets:${versions.kork}"
5456

5557
// Misc
5658
implementation "com.netflix.hystrix:hystrix-core:1.5.18" // TODO remove hystrix and use resilience4j
57-
implementation group: 'com.google.guava', name: 'guava', version: "${versions.guava}" // todo, pretty sure with Java 11, we can get ride of this, we mostly use this for the collection builders.
59+
implementation "com.google.guava:guava:${versions.guava}" // todo, pretty sure with Java 11, we can get ride of this, we mostly use this for the collection builders.
5860
implementation 'com.google.code.gson:gson:2.9.1' // todo delete, should use jackson. see cipher text utils
5961

6062
// Secure File Mime Type
61-
implementation group: 'org.apache.tika', name: 'tika-core', version: '1.26'
63+
implementation "org.apache.tika:tika-core:1.28.5"
6264

6365
// AWS
6466
implementation "com.amazonaws:aws-java-sdk-core:${versions.awsSdkVersion}"
@@ -73,8 +75,8 @@ dependencies {
7375
implementation "io.jsonwebtoken:jjwt-api:${versions.jjwt}"
7476
implementation "io.jsonwebtoken:jjwt-impl:${versions.jjwt}"
7577
implementation "io.jsonwebtoken:jjwt-jackson:${versions.jjwt}"
76-
implementation 'com.okta.jwt:okta-jwt-verifier:0.5.7'
77-
implementation 'com.okta.jwt:okta-jwt-verifier-impl:0.5.7'
78+
implementation "com.okta.jwt:okta-jwt-verifier:${versions.oktaJwtVerifier}"
79+
implementation "com.okta.jwt:okta-jwt-verifier-impl:${versions.oktaJwtVerifier}"
7880

7981

8082

@@ -84,7 +86,7 @@ dependencies {
8486

8587
// test deps
8688
testImplementation("org.springframework.boot:spring-boot-starter-test:${versions.springBoot}")
87-
testImplementation "commons-io:commons-io:2.11.0"
89+
testImplementation "commons-io:commons-io:${versions.commonsIo}"
8890
testImplementation "com.nike.backstopper:backstopper-reusable-tests:0.15.0"
8991

9092
// Integration Test Deps

gradle/bintray.gradle

Lines changed: 0 additions & 82 deletions
This file was deleted.

0 commit comments

Comments
 (0)