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

Commit

Permalink
Merge pull request #105 from Nike-Inc/dep/dependency_upgrade_staging
Browse files Browse the repository at this point in the history
Dep/dependency upgrade staging
  • Loading branch information
slichlyter12 authored Oct 1, 2021
2 parents d8db193 + 5c6a522 commit aa652d4
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 28 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Set up JDK 8
uses: actions/setup-java@v1
uses: actions/setup-java@v2.3.1
with:
java-version: 8
- name: Grant execute permission for gradlew
Expand All @@ -29,15 +29,15 @@ jobs:
- name: Test with Gradle
run: ./gradlew check
- name: Upload coverage report to CodeCov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v2.1.0
with:
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
file: ./build/reports/cobertura/coverage.xml # optional
fail_ci_if_error: true # optional (default = false)
verbose: true
- name: Slack notification when master build fails
if: ${{ failure() && github.ref == 'refs/heads/master'}}
uses: rtCamp/action-slack-notify@v2.1.0
uses: rtCamp/action-slack-notify@v2.2.0
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_CHANNEL: cerberus-alerts
Expand Down
3 changes: 3 additions & 0 deletions dependency-check-supressions.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="UTF-8"?>
<suppressions xmlns="https://jeremylong.github.io/DependencyCheck/dependency-suppression.1.3.xsd">
</suppressions>
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
version=3.2.4
version=3.2.5
groupId=com.nike
artifactId=cerberus-spring-boot-client
9 changes: 5 additions & 4 deletions gradle/buildscript.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@

repositories {
jcenter()
mavenCentral()
}

dependencies {
classpath "org.owasp:dependency-check-gradle:5.3.2"
classpath "net.saliman:gradle-cobertura-plugin:2.6.1"
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.6.3'
classpath "com.diffplug.spotless:spotless-plugin-gradle:3.30.0"
classpath "org.owasp:dependency-check-gradle:6.3.2"
classpath "net.saliman:gradle-cobertura-plugin:3.0.0"
classpath "org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.8.3"
classpath "com.diffplug.spotless:spotless-plugin-gradle:4.5.1"
}
27 changes: 11 additions & 16 deletions gradle/dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ repositories {

configurations.all {
resolutionStrategy {
force "ch.qos.logback:logback-core:1.2.3"
force "ch.qos.logback:logback-classic:1.2.3"
force "net.sourceforge.pmd:pmd-core:6.21.0"
force "net.sourceforge.pmd:pmd-java:6.21.0"
force "ch.qos.logback:logback-core:1.2.6"
force "ch.qos.logback:logback-classic:1.2.6"
force "net.sourceforge.pmd:pmd-core:6.39.0"
force "net.sourceforge.pmd:pmd-java:6.39.0"
force "com.fasterxml.jackson.core:jackson-databind:2.12.1"

dependencySubstitution {
substitute module("org.mortbay.jetty:jetty") with module("org.eclipse.jetty:jetty-server:9.4.33.v20201020")
substitute module("org.mortbay.jetty:jetty-util") with module("org.eclipse.jetty:jetty-util:9.4.33.v20201020")
substitute module("org.mortbay.jetty:jetty-http") with module("org.eclipse.jetty:jetty-http:9.4.33.v20201020")
substitute module("org.mortbay.jetty:jetty") with module("org.eclipse.jetty:jetty-server:11.0.6")
substitute module("org.mortbay.jetty:jetty-util") with module("org.eclipse.jetty:jetty-util:11.0.6")
substitute module("org.mortbay.jetty:jetty-http") with module("org.eclipse.jetty:jetty-http:11.0.6")
substitute module("dom4j:dom4j:1.6.1") with module("org.dom4j:dom4j:2.1.3")
}
}
Expand All @@ -40,19 +40,14 @@ configurations.all {
dependencies {

// Spring dependencies
compile "org.springframework.boot:spring-boot-autoconfigure:2.3.4.RELEASE"
compile "org.springframework.boot:spring-boot-autoconfigure:2.5.5"

// Cerberus dependencies
implementation('com.nike:cerberus-client'){
version {
branch = 'master'
}
}
compile 'com.nike:cerberus-client:v7.4.6'

// Test dependencies
testRuntime 'org.slf4j:slf4j-simple:1.7.25'
testCompile "org.junit.jupiter:junit-jupiter:5.7.0"
testCompile ("org.mockito:mockito-core:1.10.19") {
testCompile "org.junit.jupiter:junit-jupiter:5.8.1"
testCompile ("org.mockito:mockito-core:3.12.4") {
exclude group: 'org.hamcrest'
}
}
Expand Down
6 changes: 5 additions & 1 deletion gradle/integration.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,22 @@ sourceSets {
task integration(type: Test, description: 'Runs integration tests') {
testClassesDirs = sourceSets.integration.output.classesDirs
classpath = sourceSets.integration.runtimeClasspath
outputs.upToDateWhen { false }
}

dependencies {
integrationCompile sourceSets.main.output
integrationCompile configurations.testCompile
integrationCompile sourceSets.test.output
integrationCompile 'com.fieldju:commons:1.1.0'
integrationCompile group: 'org.projectlombok', name: 'lombok', version: '1.18.8'
integrationCompile group: 'org.projectlombok', name: 'lombok', version: '1.18.20'
integrationRuntime configurations.testRuntime

integrationAnnotationProcessor "org.projectlombok:lombok:1.18.20"
}

integration {
useJUnitPlatform()
testLogging {
showStandardStreams = true
}
Expand Down
1 change: 1 addition & 0 deletions gradle/owasp-dependency-check.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ allprojects {
failOnError = false
format = 'ALL'
failBuildOnCVSS = 7
suppressionFile = "${rootProject.projectDir}/dependency-check-supressions.xml"
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import org.apache.commons.lang3.RandomStringUtils;
import org.junit.*;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,9 @@

package com.nike.cerberus.springboot.testapp;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

@Slf4j
public class IntegrationTestSpringApp {

private final ApplicationContext applicationContext;
Expand Down

0 comments on commit aa652d4

Please sign in to comment.