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

Commit

Permalink
feat: upgrade java client and remove bintray (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
melanahammel authored Apr 1, 2021
1 parent 21b8f94 commit 96a0e8b
Show file tree
Hide file tree
Showing 15 changed files with 128 additions and 205 deletions.
47 changes: 0 additions & 47 deletions .github/workflows/release.yml

This file was deleted.

17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Cerberus Spring Boot Client

[ ![Download](https://api.bintray.com/packages/nike/maven/cerberus-spring-boot-client/images/download.svg) ](https://bintray.com/nike/maven/cerberus-spring-boot-client/_latestVersion)
![][gh actions img]
[![codecov](https://codecov.io/gh/Nike-Inc/cerberus-spring-boot-client/branch/master/graph/badge.svg)](https://codecov.io/gh/Nike-Inc/cerberus-spring-boot-client)
[![][license img]][license]
Expand All @@ -9,10 +8,24 @@ A Spring Boot client library for Cerberus for Spring Boot applications.

To learn more about Cerberus, please see the [Cerberus website](http://engineering.nike.com/cerberus/).

## Publishing Notice 3/17/2021
As of spring 2021, JFrog has decided to sunset Bintray and JCenter.
Due to this decision, we are pausing our open source publishing of the Cerberus Spring Boot Client.
However, we will still be updating the source code and making new GitHub releases.

In order to build the jar yourself, run this command:
```bash
./gradlew assemble
```

The jar will be located in `./build/libs/`.

For any questions or concerns, create a Github issue [here](https://github.com/Nike-Inc/cerberus-spring-boot-client/issues/new).

## Quickstart for EC2

1. Start with the [quick start guide](http://engineering.nike.com/cerberus/docs/user-guide/quick-start).
2. Add the [Cerberus Spring Boot Client dependency](https://bintray.com/nike/maven/cerberus-spring-boot-client) to your build (e.g. Maven, Gradle)
2. Add the Cerberus Spring Boot Client dependency to your build (e.g. Artifactory) or build the jar
3. Provide an authentication mechanism.
- For local development it is easiest to export a `CERBERUS_TOKEN` that you copied from the Cerberus dashboard.
When running in AWS, your application will not need this environmetal variable, instead it will automatically
Expand Down
2 changes: 0 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ buildscript {

apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'com.jfrog.bintray'
apply plugin: 'maven-publish'
apply plugin: "com.diffplug.gradle.spotless"

Expand All @@ -41,7 +40,6 @@ targetCompatibility = 1.8
apply from: 'gradle/dependencies.gradle'
apply from: 'gradle/check.gradle'
apply from: 'gradle/integration.gradle'
apply from: 'gradle/bintray.gradle'
apply from: '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 @@ -13,6 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
version=3.2.3
version=3.2.4
groupId=com.nike
artifactId=cerberus-spring-boot-client
75 changes: 0 additions & 75 deletions gradle/bintray.gradle

This file was deleted.

1 change: 0 additions & 1 deletion gradle/buildscript.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ repositories {
dependencies {
classpath "org.owasp:dependency-check-gradle:5.3.2"
classpath "net.saliman:gradle-cobertura-plugin:2.6.1"
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"
}
7 changes: 6 additions & 1 deletion gradle/dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ configurations.all {
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.core:jackson-databind:2.12.1"

dependencySubstitution {
substitute module("org.mortbay.jetty:jetty") with module("org.eclipse.jetty:jetty-server:9.4.33.v20201020")
Expand All @@ -42,7 +43,11 @@ dependencies {
compile "org.springframework.boot:spring-boot-autoconfigure:2.3.4.RELEASE"

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

// Test dependencies
testRuntime 'org.slf4j:slf4j-simple:1.7.25'
Expand Down
2 changes: 1 addition & 1 deletion gradle/integration.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ sourceSets {
}

task integration(type: Test, description: 'Runs integration tests') {
testClassesDir = sourceSets.integration.output.classesDir
testClassesDirs = sourceSets.integration.output.classesDirs
classpath = sourceSets.integration.runtimeClasspath
}

Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.8.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-5.3.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit 96a0e8b

Please sign in to comment.