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

Commit

Permalink
Updated library versions and some factoring
Browse files Browse the repository at this point in the history
  • Loading branch information
shawn-sher committed Feb 7, 2023
1 parent 9c61c0c commit 24a0a4d
Show file tree
Hide file tree
Showing 8 changed files with 65 additions and 142 deletions.
41 changes: 23 additions & 18 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,25 @@ import com.github.spotbugs.snom.SpotBugsReport
buildscript {
ext {
versions = [
lombok: '1.18.24',
resilience4j: '1.7.1',
awsSdkVersion: '1.12.367',
kork: '7.158.0',
ant: '1.10.+',
awsSdkVersion: '1.12.+',
commonsIo: '2.11.0',
groovy: '4.0.8',
guava: '31.1-jre',
springBoot: '2.7.5',
jakartaXmlBindApi: '3.0.1',
jaxbRuntime: '4.0.1',
jjwt: '0.11.5',
okta: '8.2.2',
oktaAuthnSdk: '2.0.9',
restAssured: '5.2.0',
groovy: '4.0.6'
kork: '7.160.2',
lang3: '3.12.0',
logback: '1.2.11',
lombok: '1.18.26',
mybatisSpring: '2.1.0',
okta: '8.2.3',
oktaAuthnSdk: '2.0.10',
oktaJwtVerifier: '0.5.7',
resilience4j: '1.7.1', // 2 requires java 17
restAssured: '5.3.0',
springBoot: '2.7.8',
]
}

Expand All @@ -44,16 +52,15 @@ buildscript {
}

dependencies {
classpath "org.owasp:dependency-check-gradle:7.3.0"
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.5"
classpath "org.owasp:dependency-check-gradle:8.0.2"
}
}

plugins {
id "io.spring.dependency-management" version "1.1.0"
id "com.github.nbaztec.coveralls-jacoco" version "1.2.15"
id "com.github.spotbugs" version "5.0.13"
id "com.diffplug.spotless" version "6.11.0"
id "com.diffplug.spotless" version "6.14.1"
}

apply from: 'gradle/owasp-dependency-check.gradle'
Expand Down Expand Up @@ -125,8 +132,6 @@ allprojects {
subprojects {
apply plugin: 'io.spring.dependency-management'

apply from: file("${rootProject.projectDir}/gradle/bintray.gradle")

sourceCompatibility = '11'

sourceSets {
Expand Down Expand Up @@ -171,8 +176,8 @@ subprojects {
// common test deps
testImplementation "org.apache.groovy:groovy-all:${versions.groovy}"
testImplementation 'org.spockframework:spock-core:2.3-groovy-4.0'
testImplementation 'junit:junit:4.13.2'
testImplementation group: 'org.mockito', name: 'mockito-all', version: '1.10.19'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.2'
testImplementation 'org.mockito:mockito-all:1.10.19'
testImplementation 'com.openpojo:openpojo:0.9.1'
}

Expand Down Expand Up @@ -228,8 +233,8 @@ configurations {
}

dependencies {
antJUnit 'org.apache.ant:ant-junit:1.10.12'
runtimeOnly 'org.apache.ant:ant-antlr:1.10.12'
antJUnit "org.apache.ant:ant-junit:${versions.ant}"
runtimeOnly "org.apache.ant:ant-antlr:${versions.ant}"

}

Expand Down
39 changes: 18 additions & 21 deletions cerberus-api-tests/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,34 +25,31 @@ repositories {

configurations.all {
resolutionStrategy {
force 'org.apache.ant:ant:1.10.12'
force "org.apache.ant:ant:${versions.ant}"
}
}
dependencies {
integrationTestImplementation project(':cerberus-core').sourceSets.test.output
integrationTestImplementation group: 'org.testng', name: 'testng', version: '7.5'
integrationTestImplementation 'junit:junit:4.13.2'
integrationTestImplementation group: 'org.testng', name: 'testng', version: '7.7.1'
integrationTestImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.2'

integrationTestImplementation 'org.slf4j:slf4j-api:1.7.36'
integrationTestImplementation group: 'org.apache.groovy', name: 'groovy-all', version: versions.groovy
integrationTestImplementation "org.apache.groovy:groovy-all:${versions.groovy}"
integrationTestImplementation "io.rest-assured:rest-assured:${versions.restAssured}"
integrationTestImplementation group: 'io.rest-assured', name: 'json-schema-validator', version: versions.restAssured
integrationTestImplementation group: 'io.rest-assured', name: 'json-path', version: versions.restAssured
integrationTestImplementation group: 'io.rest-assured', name: 'xml-path', version: versions.restAssured
integrationTestImplementation group: 'javax.xml.bind', name: 'jaxb-api', version: '2.3.1'
integrationTestImplementation group: 'org.glassfish.jaxb', name: 'jaxb-runtime', version: '3.0.2'
integrationTestImplementation group: 'org.hamcrest', name: 'hamcrest', version: '2.2'
integrationTestImplementation "io.rest-assured:json-schema-validator:${versions.restAssured}"
integrationTestImplementation "io.rest-assured:json-path:${versions.restAssured}"
integrationTestImplementation "io.rest-assured:xml-path:${versions.restAssured}"
integrationTestImplementation "javax.xml.bind:jaxb-api:2.3.1"
integrationTestImplementation "org.glassfish.jaxb:jaxb-runtime:${versions.jaxbRuntime}"
integrationTestImplementation "org.hamcrest:hamcrest:2.2"
integrationTestImplementation "com.google.guava:guava:${versions.guava}"
integrationTestImplementation group: 'com.amazonaws', name: 'aws-java-sdk-kms', version: "${versions.awsSdkVersion}"
integrationTestImplementation group: 'com.amazonaws', name: 'aws-java-sdk-sts', version: "${versions.awsSdkVersion}"
integrationTestImplementation group: 'org.jboss.aerogear', name: 'aerogear-otp-java', version: '1.0.0'
integrationTestImplementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.12.0'
integrationTestImplementation group: 'com.thedeanda', name: 'lorem', version: '2.1'
integrationTestImplementation "jakarta.xml.bind:jakarta.xml.bind-api:3.0.1"
integrationTestImplementation "jakarta.xml.bind:jakarta.xml.bind-api:3.0.1"
integrationTestImplementation "jakarta.xml.bind:jakarta.xml.bind-api:3.0.1"
integrationTestImplementation "org.glassfish.jaxb:jaxb-runtime:3.0.2"
integrationTestImplementation group: 'com.thedeanda', name: 'lorem', version: '2.1'
integrationTestImplementation "org.apache.groovy:groovy-all:4.0.6"
integrationTestImplementation "com.amazonaws:aws-java-sdk-kms:${versions.awsSdkVersion}"
integrationTestImplementation "com.amazonaws:aws-java-sdk-sts:${versions.awsSdkVersion}"
integrationTestImplementation "org.jboss.aerogear:aerogear-otp-java:1.0.0"
integrationTestImplementation "org.apache.commons:commons-lang3:${versions.lang3}"
integrationTestImplementation "com.thedeanda:lorem:2.1"
integrationTestImplementation "jakarta.xml.bind:jakarta.xml.bind-api:${versions.jakartaXmlBindApi}"
integrationTestImplementation "org.apache.groovy:groovy-all:${versions.groovy}"
}

integrationTest {
Expand Down
8 changes: 4 additions & 4 deletions cerberus-audit-logger-athena/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ dependencies {
implementation "com.amazonaws:aws-java-sdk-s3:${versions.awsSdkVersion}"
implementation "com.amazonaws:aws-java-sdk-athena:${versions.awsSdkVersion}"

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

implementation 'ch.qos.logback:logback-classic:1.2.11'
implementation 'ch.qos.logback:logback-core:1.2.11'
implementation "ch.qos.logback:logback-classic:${versions.logback}"
implementation "ch.qos.logback:logback-core:${versions.logback}"
}
4 changes: 2 additions & 2 deletions cerberus-auth-connector-okta/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ dependencies {
implementation group: 'com.google.guava', name: 'guava', version: "${versions.guava}"

// Okta jwt verfier libraries
implementation 'com.okta.jwt:okta-jwt-verifier:0.5.7'
implementation 'com.okta.jwt:okta-jwt-verifier-impl:0.5.7'
implementation "com.okta.jwt:okta-jwt-verifier:${versions.oktaJwtVerifier}"
implementation "com.okta.jwt:okta-jwt-verifier-impl:${versions.oktaJwtVerifier}"
}
8 changes: 4 additions & 4 deletions cerberus-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ dependencies {
api 'com.github.ben-manes.caffeine:caffeine:3.1.1'

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

// Find bugs annotations
api group: 'com.google.code.findbugs', name: 'annotations', version: '3.0.1u2'
api 'com.google.code.findbugs:annotations:3.0.1u2'

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

configurations.all {
Expand Down
5 changes: 3 additions & 2 deletions cerberus-domain/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ repositories {
}

dependencies {
api group: 'javax.validation', name: 'validation-api', version: '2.0.1.Final'
api group: 'jakarta.validation', name: 'jakarta.validation-api', version: '2.0.2'

api group: 'org.hibernate', name: 'hibernate-validator', version: '7.0.5.Final'
api group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: '2.11.1'

api group: 'org.apache.commons', name: 'commons-lang3', version: '3.12.0'
api group: 'org.apache.commons', name: 'commons-lang3', version: versions.lang3
api group: 'org.apache.commons', name: 'commons-text', version: '1.10.0'

integrationTestCompile "org.apache.groovy:groovy-all:${versions.groovy}"
Expand Down
20 changes: 11 additions & 9 deletions cerberus-web/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

plugins {
id 'org.springframework.boot' version "2.7.0"
id 'org.springframework.boot' version "2.7.8"
}

sourceCompatibility = '11'
Expand All @@ -40,25 +40,27 @@ dependencies {
implementation "org.springframework.boot:spring-boot-starter-actuator:${versions.springBoot}"
implementation "org.springframework.boot:spring-boot-starter-web:${versions.springBoot}"
implementation "org.springframework.boot:spring-boot-starter-security:${versions.springBoot}"
implementation "org.springframework.boot:spring-boot-starter:${versions.springBoot}"
implementation "org.springframework.boot:spring-boot:${versions.springBoot}"

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

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

// Misc
implementation "com.netflix.hystrix:hystrix-core:1.5.18" // TODO remove hystrix and use resilience4j
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.
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.
implementation 'com.google.code.gson:gson:2.9.1' // todo delete, should use jackson. see cipher text utils

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

// AWS
implementation "com.amazonaws:aws-java-sdk-core:${versions.awsSdkVersion}"
Expand All @@ -73,8 +75,8 @@ dependencies {
implementation "io.jsonwebtoken:jjwt-api:${versions.jjwt}"
implementation "io.jsonwebtoken:jjwt-impl:${versions.jjwt}"
implementation "io.jsonwebtoken:jjwt-jackson:${versions.jjwt}"
implementation 'com.okta.jwt:okta-jwt-verifier:0.5.7'
implementation 'com.okta.jwt:okta-jwt-verifier-impl:0.5.7'
implementation "com.okta.jwt:okta-jwt-verifier:${versions.oktaJwtVerifier}"
implementation "com.okta.jwt:okta-jwt-verifier-impl:${versions.oktaJwtVerifier}"



Expand All @@ -84,7 +86,7 @@ dependencies {

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

// Integration Test Deps
Expand Down
82 changes: 0 additions & 82 deletions gradle/bintray.gradle

This file was deleted.

0 comments on commit 24a0a4d

Please sign in to comment.