Skip to content

Commit f023209

Browse files
Merge pull request #42 from target/09082025_gradle-build-action
Remove use of deprecated gradle/gradle-build-action.
2 parents 7dcc885 + f284d2e commit f023209

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,5 @@ jobs:
2323
distribution: 'temurin'
2424
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
2525
settings-path: ${{ github.workspace }} # location for the settings.xml file
26-
2726
- name: Build with Gradle
28-
uses: gradle/gradle-build-action@v3
29-
with:
30-
arguments: build
27+
run: ./gradlew clean build

.github/workflows/gradle-publish.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,8 @@ jobs:
2020
distribution: 'temurin'
2121
- name: Set Release Version as an environment variable
2222
run: echo "PUBLISH_VERSION=$(echo ${{ github.event.release.tag_name }})" >> $GITHUB_ENV
23-
- name: Publish package
24-
uses: gradle/gradle-build-action@ac2d340dc04d9e1113182899e983b5400c17cda1
25-
with:
26-
arguments: -Pversion=${{ env.PUBLISH_VERSION }} publishToSonatype closeAndReleaseSonatypeStagingRepository
23+
- name: Publish Package
24+
run: ./gradlew -Pversion=${{ env.PUBLISH_VERSION }} publishToSonatype closeAndReleaseSonatypeStagingRepository
2725
env:
2826
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.SONATYPE_USERNAME }}
2927
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SONATYPE_PASSWORD }}

0 commit comments

Comments
 (0)