Skip to content
This repository has been archived by the owner on Oct 18, 2021. It is now read-only.

Commit

Permalink
feat: upgrade java client for china auth (#25)
Browse files Browse the repository at this point in the history
* feat: upgrade java client version

* fix: added owasp dependency check and resolved critical vulnerabilities
  • Loading branch information
melanahammel authored Sep 1, 2020
1 parent edc1c38 commit 27ea65e
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 2 deletions.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,6 @@ apply from: file('gradle/dependencies.gradle')
apply from: file('gradle/check.gradle')
apply from: file('gradle/integration.gradle')
apply from: file('gradle/bintray.gradle')
apply from: file('gradle/owasp-dependency-check.gradle')

group = groupId
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# limitations under the License.
#

version=7.0.1
version=7.1.0
groupId=com.nike
artifactId=cerberus-archaius-client

Expand Down
1 change: 1 addition & 0 deletions gradle/buildscript.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.5'
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:5.3.2'
}
22 changes: 21 additions & 1 deletion gradle/dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,29 @@ 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 "com.fasterxml.jackson:jackson-core:2.11.1"
force "com.fasterxml.jackson:jackson-annotations:2.11.1"
force "com.fasterxml.jackson.core:jackson-databind:2.11.1"
force "org.apache.httpcomponents:httpclient:4.5.12"

dependencySubstitution {
substitute module("org.mortbay.jetty:jetty") with module("org.eclipse.jetty:jetty-server:9.4.30.v20200611")
substitute module("org.mortbay.jetty:jetty-util") with module("org.eclipse.jetty:jetty-util:9.4.30.v20200611")
substitute module("org.mortbay.jetty:jetty-http") with module("org.eclipse.jetty:jetty-http:9.4.30.v20200611")
}
}
exclude group: 'org.mortbay.jetty', module:'servlet-api-2.5'
}

dependencies {
compile 'com.netflix.archaius:archaius-aws:0.6.5'
compile 'com.nike:cerberus-client:7.1.1'
compile 'com.nike:cerberus-client:7.3.1'

compile "org.apache.commons:commons-lang3:3.5"
compile "com.squareup.okhttp3:okhttp:3.9.0"
Expand Down
27 changes: 27 additions & 0 deletions gradle/owasp-dependency-check.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*
* Copyright (c) 2020 Nike, inc.
*
* Licensed under the Apache License, Version 2.0 (the "License")
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

allprojects {
apply plugin: "org.owasp.dependencycheck"

dependencyCheck {
failOnError = false
format = 'ALL'
failBuildOnCVSS = 7
}
}

tasks.check.dependsOn dependencyCheckAnalyze

0 comments on commit 27ea65e

Please sign in to comment.