diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 9df0fad..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,47 +0,0 @@ -# This workflow will build a Java project with Gradle -# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle - -name: Release - -on: - push: - # Sequence of patterns matched against refs/tags - tags: - - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 -jobs: - Build-and-Release: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Set up JDK 8 - uses: actions/setup-java@v1 - with: - java-version: 8 - - name: Grant execute permission for gradlew - run: chmod +x gradlew - - name: Build with Gradle - run: ./gradlew assemble - - name: Test with Gradle - run: ./gradlew check - - name: Upload coverage report to CodeCov - uses: codecov/codecov-action@v1 - 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: Release artifact to Bintray - env: - BINTRAY_USER: ${{ secrets.BINTRAY_USER }} - BINTRAY_KEY: ${{ secrets.BINTRAY_KEY}} - run: ./gradlew bintrayUpload - - name: Slack notification when release fails - if: ${{ failure() }} - uses: rtCamp/action-slack-notify@v2.1.0 - env: - SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} - SLACK_CHANNEL: cerberus-alerts - SLACK_MESSAGE: 'Cerberus release workflow has failed :build-failed:' - SLACK_ICON: https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png - SLACK_TITLE: Cerberus Build Failure Notification - SLACK_USERNAME: GitHub Actions \ No newline at end of file diff --git a/README.md b/README.md index a7c7a4c..4e8646e 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,5 @@ # Cerberus Client -[ ![Download](https://api.bintray.com/packages/nike/maven/cerberus-client/images/download.svg) ](https://bintray.com/nike/maven/cerberus-client/_latestVersion) -[![][travis img]][travis] [![codecov](https://codecov.io/gh/Nike-Inc/cerberus-java-client/branch/master/graph/badge.svg)](https://codecov.io/gh/Nike-Inc/cerberus-java-client) [![][license img]][license] @@ -10,6 +8,18 @@ This is a Java based client library for Cerberus that is built on top of Nike's This library acts as a wrapper around the Nike developed Cerberus client by configuring the client to be Cerberus compatible. 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 Client indefinitely. +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/`. ## Quickstart for Cerberus Java Client diff --git a/build.gradle b/build.gradle index 4f50863..7c08050 100644 --- a/build.gradle +++ b/build.gradle @@ -20,7 +20,6 @@ buildscript { apply plugin: 'java' apply plugin: 'maven' -apply plugin: 'com.jfrog.bintray' apply plugin: 'maven-publish' apply plugin: "com.github.johnrengelman.shadow" @@ -38,6 +37,5 @@ tasks.jar.dependsOn copyProjectVersion apply from: file('gradle/dependencies.gradle') apply from: file('gradle/check.gradle') apply from: file('gradle/integration.gradle') -apply from: file('gradle/bintray.gradle') group = groupId diff --git a/gradle.properties b/gradle.properties index a51e16b..b10b57a 100644 --- a/gradle.properties +++ b/gradle.properties @@ -13,6 +13,6 @@ # See the License for the specific language governing permissions and # limitations under the License. # -version=7.4.4 +version=7.4.5 groupId=com.nike artifactId=cerberus-client diff --git a/gradle/bintray.gradle b/gradle/bintray.gradle deleted file mode 100644 index c0ed469..0000000 --- a/gradle/bintray.gradle +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright (c) 2017 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. - */ - -def bintrayUser = project.hasProperty('bintrayUser') ? project.bintrayUser : System.getenv('BINTRAY_USER') ?: '' -def bintrayKey = project.hasProperty('bintrayKey') ? project.bintrayKey : System.getenv('BINTRAY_KEY') ?: '' -def bintrayVersion = "$version" - -bintray { - user = bintrayUser - key = bintrayKey - dryRun = false - publish = true - publications = ['jar'] - - pkg { - repo = 'maven' - name = 'cerberus-client' - userOrg = 'nike' - licenses = ['Apache-2.0'] - websiteUrl = 'https://github.com/Nike-Inc/cerberus-java-client' - issueTrackerUrl = 'https://github.com/Nike-Inc/cerberus-java-client/issues' - vcsUrl = 'https://github.com/Nike-Inc/cerberus-java-client.git' - githubRepo = 'Nike-Inc/cerberus-java-client' - githubReleaseNotesFile = 'CHANGELOG.md' - - version { - name = bintrayVersion - - gpg { - sign = true - } - } - } -} - -task sourcesJar(type: Jar) { - from sourceSets.main.allSource - classifier = 'sources' -} - -task javadocJar(type: Jar, dependsOn: javadoc) { - classifier = 'javadoc' - from javadoc.destinationDir -} - -artifacts { - archives javadocJar - archives sourcesJar -} - -publishing { - publications { - jar(MavenPublication) { publication -> - from project.shadow.component(publication) - - artifact sourcesJar - artifact javadocJar - } - } -} - -bintrayUpload.dependsOn(shadowJar) \ No newline at end of file diff --git a/gradle/buildscript.gradle b/gradle/buildscript.gradle index 182f7d2..0a8e8fe 100644 --- a/gradle/buildscript.gradle +++ b/gradle/buildscript.gradle @@ -20,7 +20,6 @@ repositories { dependencies { 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.github.jengelman.gradle.plugins:shadow:4.0.3" classpath 'org.owasp:dependency-check-gradle:5.3.2'