Skip to content

Commit

Permalink
feat(build): publish to maven central, switch groupId to io.spinnaker…
Browse files Browse the repository at this point in the history
….rosco (#782)
  • Loading branch information
danielpeach committed Mar 19, 2021
1 parent 973e927 commit b549fab
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/release.yml
Expand Up @@ -36,11 +36,14 @@ jobs:
echo ::set-output name=RELEASE_VERSION::${RELEASE_VERSION}
- name: Release build
env:
BINTRAY_USER: ${{ secrets.BINTRAY_USER }}
BINTRAY_API_KEY: ${{ secrets.BINTRAY_API_KEY }}
RELEASE_VERSION: ${{ steps.release_info.outputs.RELEASE_VERSION }}
ORG_GRADLE_PROJECT_version: ${{ steps.release_info.outputs.RELEASE_VERSION }}
ORG_GRADLE_PROJECT_nexusPublishEnabled: true
ORG_GRADLE_PROJECT_nexusUsername: ${{ secrets.NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_nexusPassword: ${{ secrets.NEXUS_PASSWORD }}
ORG_GRADLE_PROJECT_nexusPgpSigningKey: ${{ secrets.NEXUS_PGP_SIGNING_KEY }}
ORG_GRADLE_PROJECT_nexusPgpSigningPassword: ${{ secrets.NEXUS_PGP_SIGNING_PASSWORD }}
run: |
./gradlew --info -Pversion="${RELEASE_VERSION}" -PbintrayUser="${BINTRAY_USER}" -PbintrayKey="${BINTRAY_API_KEY}" -PbintrayPublishDebEnabled=false publish
./gradlew --info publishToNexus closeAndReleaseNexusStagingRepository
- name: Create release
if: steps.release_info.outputs.SKIP_RELEASE == 'false'
uses: actions/create-release@v1
Expand Down
7 changes: 5 additions & 2 deletions build.gradle
Expand Up @@ -2,9 +2,12 @@ plugins {
id 'io.spinnaker.project' version "$spinnakerGradleVersion" apply false
}

subprojects {
allprojects {
apply plugin: 'io.spinnaker.project'
group = "com.netflix.spinnaker.rosco"
}

subprojects {
group = "io.spinnaker.rosco"

if (name != "rosco-bom") {
apply plugin: 'java-library'
Expand Down

0 comments on commit b549fab

Please sign in to comment.