Skip to content

chore(deps): update plugin com.gradle.develocity to v3.17.1 (#7153) #2700

chore(deps): update plugin com.gradle.develocity to v3.17.1 (#7153)

chore(deps): update plugin com.gradle.develocity to v3.17.1 (#7153) #2700

name: Deploy Snapshot
on:
push:
branches:
- main
env:
DEVELOCITY_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
ORG_GRADLE_PROJECT_enablePTS: false
permissions:
contents: read
jobs:
gradle:
runs-on: ubuntu-latest
if: github.repository == 'detekt/detekt'
steps:
- name: Checkout Repo
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Setup Java
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4
with:
java-version: 21
distribution: "temurin"
- name: Setup Gradle
uses: gradle/actions/setup-gradle@1168cd3d07c1876a65e1724114de42ccbdfa7b78 # v3
with:
gradle-home-cache-cleanup: true
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Assemble and publish artifacts to Maven Local
run: ./gradlew publishToMavenLocal
- name: Build detekt
run: ./gradlew build
- name: Deploy Snapshot
env:
ORG_GRADLE_PROJECT_SIGNING_KEY: ${{ secrets.ORG_GRADLE_PROJECT_SIGNING_KEY }}
ORG_GRADLE_PROJECT_SIGNING_PWD: ${{ secrets.ORG_GRADLE_PROJECT_SIGNING_PWD }}
ORG_GRADLE_PROJECT_SONATYPE_USERNAME: ${{ secrets.ORG_GRADLE_PROJECT_SONATYPE_USERNAME }}
ORG_GRADLE_PROJECT_SONATYPE_PASSWORD: ${{ secrets.ORG_GRADLE_PROJECT_SONATYPE_PASSWORD }}
run: ./gradlew publishAllToSonatypeSnapshot -Dsnapshot=true --stacktrace