Skip to content

Fix duplicated tree links in Gradle 8.10 (#258) #89

Fix duplicated tree links in Gradle 8.10 (#258)

Fix duplicated tree links in Gradle 8.10 (#258) #89

name: Publish Snapshot
on:
push:
branches:
- master
jobs:
publish:
runs-on: ubuntu-latest
if: github.repository == 'vanniktech/gradle-dependency-graph-generator-plugin'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install JDK 11
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 11
- name: Setup gradle
uses: gradle/gradle-build-action@v3
- name: Retrieve version
run: |
echo "VERSION_NAME=$(cat gradle.properties | grep -w "VERSION_NAME" | cut -d'=' -f2)" >> $GITHUB_ENV
- name: Publish snapshot
run: ./gradlew publishAllPublicationsToMavenCentralRepository
if: endsWith(env.VERSION_NAME, '-SNAPSHOT')
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}