diff --git a/.github/workflows/nebula-ci.yml b/.github/workflows/nebula-ci.yml new file mode 100644 index 00000000..314ca6f5 --- /dev/null +++ b/.github/workflows/nebula-ci.yml @@ -0,0 +1,45 @@ +name: "CI" +on: + push: + branches: + - '*' + tags-ignore: + - '*' + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + # test against JDK 8 + java: [ 8 ] + name: CI with Java ${{ matrix.java }} + steps: + - uses: actions/checkout@v1 + - name: Setup jdk + uses: actions/setup-java@v1 + with: + java-version: ${{ matrix.java }} + - uses: actions/cache@v1 + id: gradle-cache + with: + path: ~/.gradle/caches + key: ${{ runner.os }}-gradle-${{ hashFiles('**/gradle/dependency-locks/*.lockfile') }} + restore-keys: | + - ${{ runner.os }}-gradle- + - uses: actions/cache@v1 + id: gradle-wrapper-cache + with: + path: ~/.gradle/wrapper + key: ${{ runner.os }}-gradlewrapper-${{ hashFiles('gradle/wrapper/*') }} + restore-keys: | + - ${{ runner.os }}-gradlewrapper- + - name: Build with Gradle + run: ./gradlew --info --stacktrace build + env: + CI_NAME: github_actions + CI_BUILD_NUMBER: ${{ github.sha }} + CI_BUILD_URL: 'https://github.com/${{ github.repository }}' + CI_BRANCH: ${{ github.ref }} + COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/nebula-publish.yml b/.github/workflows/nebula-publish.yml new file mode 100644 index 00000000..5e20218a --- /dev/null +++ b/.github/workflows/nebula-publish.yml @@ -0,0 +1,51 @@ +name: "Publish candidate/release to NetflixOSS and Maven Central" +on: + push: + tags: + - v*.*.* + - v*.*.*-rc.* + release: + types: + - published + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Setup jdk 8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + - uses: actions/cache@v1 + id: gradle-cache + with: + path: ~/.gradle/caches + key: ${{ runner.os }}-gradle-${{ hashFiles('**/gradle/dependency-locks/*.lockfile') }} + restore-keys: | + - ${{ runner.os }}-gradle- + - uses: actions/cache@v1 + id: gradle-wrapper-cache + with: + path: ~/.gradle/wrapper + key: ${{ runner.os }}-gradlewrapper-${{ hashFiles('gradle/wrapper/*') }} + restore-keys: | + - ${{ runner.os }}-gradlewrapper- + - name: Publish candidate + if: contains(github.ref, '-rc.') + run: ./gradlew --info --stacktrace -Prelease.useLastTag=true candidate + env: + NETFLIX_OSS_SIGNING_KEY: ${{ secrets.ORG_SIGNING_KEY }} + NETFLIX_OSS_SIGNING_PASSWORD: ${{ secrets.ORG_SIGNING_PASSWORD }} + NETFLIX_OSS_REPO_USERNAME: ${{ secrets.ORG_NETFLIXOSS_USERNAME }} + NETFLIX_OSS_REPO_PASSWORD: ${{ secrets.ORG_NETFLIXOSS_PASSWORD }} + - name: Publish release + if: (!contains(github.ref, '-rc.')) + run: ./gradlew --info -Prelease.useLastTag=true final + env: + NETFLIX_OSS_SONATYPE_USERNAME: ${{ secrets.ORG_SONATYPE_USERNAME }} + NETFLIX_OSS_SONATYPE_PASSWORD: ${{ secrets.ORG_SONATYPE_PASSWORD }} + NETFLIX_OSS_SIGNING_KEY: ${{ secrets.ORG_SIGNING_KEY }} + NETFLIX_OSS_SIGNING_PASSWORD: ${{ secrets.ORG_SIGNING_PASSWORD }} + NETFLIX_OSS_REPO_USERNAME: ${{ secrets.ORG_NETFLIXOSS_USERNAME }} + NETFLIX_OSS_REPO_PASSWORD: ${{ secrets.ORG_NETFLIXOSS_PASSWORD }} diff --git a/.github/workflows/nebula-snapshot.yml b/.github/workflows/nebula-snapshot.yml new file mode 100644 index 00000000..b4ee7409 --- /dev/null +++ b/.github/workflows/nebula-snapshot.yml @@ -0,0 +1,37 @@ +name: "Publish snapshot to NetflixOSS and Maven Central" + +on: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Set up JDK + uses: actions/setup-java@v1 + with: + java-version: 8 + - uses: actions/cache@v2 + id: gradle-cache + with: + path: | + ~/.gradle/caches + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} + - uses: actions/cache@v2 + id: gradle-wrapper-cache + with: + path: | + ~/.gradle/wrapper + key: ${{ runner.os }}-gradlewrapper-${{ hashFiles('gradle/wrapper/*') }} + - name: Build + run: ./gradlew build snapshot + env: + NETFLIX_OSS_SIGNING_KEY: ${{ secrets.ORG_SIGNING_KEY }} + NETFLIX_OSS_SIGNING_PASSWORD: ${{ secrets.ORG_SIGNING_PASSWORD }} + NETFLIX_OSS_REPO_USERNAME: ${{ secrets.ORG_NETFLIXOSS_USERNAME }} + NETFLIX_OSS_REPO_PASSWORD: ${{ secrets.ORG_NETFLIXOSS_PASSWORD }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 1658e3d0..00000000 --- a/.travis.yml +++ /dev/null @@ -1,18 +0,0 @@ -language: java -jdk: -- openjdk8 -- openjdk11 -sudo: false -install: "./installViaTravis.sh" -script: "./buildViaTravis.sh" -env: - global: - - secure: XnsxAHpVyqpvKS5+9xmLVVeIywT+qI/Nc4pH/9V3co/asbYwPUd7/thfFPzP2fgc/Q2mMBc5Xg6ItFnIKY9b5O7wfep7pBJNPG04MdkS9c3uFRxF1XtfC6Ukct4ILt7ttw83rpN2Os/q1lEJ6KJD6n9K8xhubwWFSSXxCzYw2sc= - - secure: P/K+GZHhEkHN/Bxg57SvTs2E/sl+o7qXiQdXBwFN4NCQvv5udpY/6m7CZLUpw2Gsaiqrrd27KlgRHN2XjBGGY2CckiuIwBfeJoCr+47SK8188zntx3lLOIhAAhBAbJ+61rFZLAGQ2s2lOsyn2rzBVLNSkPVSey6e7XJ5JAbLCEc= - - secure: bWvbs4Q5RiXEBTaHdYo1+5yD5VXXVC65iHz+tlJfoRnJtDyEIh/wFPFBYOA4AlK/bVyRvzwisCsBQVvvFBfEhbhJ5GuoX8MAhdBjJMKlz8MLLbv3DuPR9/8wLpiFqMj7nqylzuXFZHPirBBcZ6YUNiU5KCdbwIpOEJZBDgZJzFY= - - secure: m7QroskTnrgsQcbfH2xmCX/ZAEjbqR6UGO1phMqLU/bDMfwjfpo8T1vyF45vgGicD1H23S1UoqJ1Kv6AJUOmj08+S/S3qe1Yf0YUwuCyCU3iG3nB4+JcSGq+fwnlh4AS3gAyC7BsugLdrWRj9PQjrND+FYZE7cornk3QdQYrBMM= - - secure: ABYD+BJ5sy1QmYyw6So0zPMZsgk0DJuf4Di2wLd8R1a7X/vgGCXf5afF0/wQ3s9VYmWVjAge64dVhMuu5ZComS9StV9v5ai7PkdpYBGEMpHO97bUWhrxg7f6++NUHA5wA03nd2hSFqV8JH9daKW7lu6Q5DriP/sP/WyUMRlCOP0= - - secure: VA4V6s0wBVxnB7zp0qjVtyo0xBrUF+s6EMHRJu5pnfZsxCtHc1YfqcK8K101UpOO3EFDi8ndDtMl/ssrHQ54RMNI5iL+x4R2isO0ovu7dzepKIt2VbJQNSKVknZ6Yo8zeTTpTHLfSoiq1Jtgj2Z/ozZkya70DC08ocdFt2cwuJE= -cache: - directories: - - "$HOME/.gradle/caches" diff --git a/buildViaTravis.sh b/buildViaTravis.sh deleted file mode 100755 index d37d45e2..00000000 --- a/buildViaTravis.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/bash -# This script will build the project. - -if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then - echo -e "Build Pull Request #$TRAVIS_PULL_REQUEST => Branch ['$TRAVIS_BRANCH']" - ./gradlew build -else - # Only publish when using JDK8 - if [[ "$TRAVIS_JDK_VERSION" == *"jdk8" ]]; then - if [ "$TRAVIS_TAG" == "" ]; then - echo -e 'Build Branch with Snapshot => Branch ['$TRAVIS_BRANCH']' - # snapshot - ./gradlew -Prelease.travisci=true -PnetflixOss.username=$NETFLIX_OSS_REPO_USERNAME -PnetflixOss.password=$NETFLIX_OSS_REPO_PASSWORD -Psonatype.signingPassword=$NETFLIX_OSS_SIGNING_PASSWORD -Prelease.scope=patch build snapshot - else - echo -e 'Build Branch for Release => Branch ['$TRAVIS_BRANCH'] Tag ['$TRAVIS_TAG']' - if [[ "$TRAVIS_TAG" == *"rc."* ]]; then - # candidate - ./gradlew -Prelease.travisci=true -Prelease.useLastTag=true -PnetflixOss.username=$NETFLIX_OSS_REPO_USERNAME -PnetflixOss.password=$NETFLIX_OSS_REPO_PASSWORD -Psonatype.signingPassword=$NETFLIX_OSS_SIGNING_PASSWORD candidate - else - # final - ./gradlew -Prelease.travisci=true -Prelease.useLastTag=true -PnetflixOss.username=$NETFLIX_OSS_REPO_USERNAME -PnetflixOss.password=$NETFLIX_OSS_REPO_PASSWORD -Psonatype.username=$NETFLIX_OSS_SONATYPE_USERNAME -Psonatype.password=$NETFLIX_OSS_SONATYPE_PASSWORD -Psonatype.signingPassword=$NETFLIX_OSS_SIGNING_PASSWORD final - fi - fi - else - echo -e "Build Branch without publishing => Branch ['$TRAVIS_BRANCH'] JDK ['$TRAVIS_JDK_VERSION']" - ./gradlew build - fi -fi diff --git a/installViaTravis.sh b/installViaTravis.sh deleted file mode 100755 index 89461ec6..00000000 --- a/installViaTravis.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash -# This script will build the project. - -if [ "$TRAVIS_SECURE_ENV_VARS" = "true" ]; then - echo "Decrypting publishing credentials" - openssl aes-256-cbc -k "$NETFLIX_OSS_SIGNING_FILE_PASSWORD" -in secrets/signing-key.enc -out secrets/signing-key -d -fi - - - diff --git a/secrets/signing-key.enc b/secrets/signing-key.enc deleted file mode 100644 index bec61a6d..00000000 Binary files a/secrets/signing-key.enc and /dev/null differ