Skip to content

Commit 63f08b1

Browse files
committed
updating gradle actions w/args to un-deprecated syntax
1 parent ec07603 commit 63f08b1

File tree

6 files changed

+27
-20
lines changed

6 files changed

+27
-20
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,11 @@ jobs:
5252

5353
- uses: gradle/actions/wrapper-validation@ed408507eac070d1f99cc633dbcf757c94c7933a # v4.4.3
5454

55-
- name: Manually build to avoid autobuild failures
55+
- name: Setup Gradle
5656
uses: gradle/actions/setup-gradle@ed408507eac070d1f99cc633dbcf757c94c7933a #4.4.3
57-
with:
58-
arguments: build
57+
58+
- name: Manually build to avoid autobuild failures
59+
run: ./gradlew build
5960

6061
- name: Perform CodeQL Analysis
6162
uses: github/codeql-action/analyze@16df4fbc19aea13d921737861d6c622bf3cefe23 #v3.30.3

.github/workflows/daily-scan.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,11 @@ jobs:
5252
- name: Publish patched dependencies to maven local
5353
uses: ./.github/actions/patch-dependencies
5454

55-
- name: Build JAR
55+
- name: Setup Gradle
5656
uses: gradle/actions/setup-gradle@ed408507eac070d1f99cc633dbcf757c94c7933a #4.4.3
57-
with:
58-
arguments: assemble -PlocalDocker=true
57+
58+
- name: Build JAR
59+
run: ./gradlew assemble -PlocalDocker=true
5960

6061
# See http://jeremylong.github.io/DependencyCheck/dependency-check-cli/ for installation explanation
6162
- name: Install and run dependency scan

.github/workflows/docker-build-smoke-tests-fake-backend.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ jobs:
4949
with:
5050
registry: public.ecr.aws
5151

52-
- name: Build and push docker image
52+
- name: Setup Gradle
5353
uses: gradle/actions/setup-gradle@ed408507eac070d1f99cc633dbcf757c94c7933a #4.4.3
54-
with:
55-
arguments: :smoke-tests:fakebackend:jib
54+
55+
- name: Build and push docker image
56+
run: ./gradlew :smoke-tests:fakebackend:jib

.github/workflows/e2e-tests-app-with-java-agent.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,11 @@ jobs:
6464
with:
6565
registry: public.ecr.aws
6666

67-
- name: Build and push agent and testing docker images with Gradle
67+
- name: Setup Gradle
6868
uses: gradle/actions/setup-gradle@ed408507eac070d1f99cc633dbcf757c94c7933a #4.4.3
69-
with:
70-
arguments: jib
69+
70+
- name: Build and push agent and testing docker images with Gradle
71+
run: ./gradlew jib
7172
env:
7273
COMMIT_HASH: ${{ inputs.image_tag }}
7374

.github/workflows/e2e-tests-with-operator.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,9 @@ jobs:
7272

7373
- name: Build and push Sample-Apps without Auto-Instrumentation Agent
7474
uses: gradle/actions/setup-gradle@ed408507eac070d1f99cc633dbcf757c94c7933a #v4.4.3
75-
with:
76-
arguments: jibBuildWithoutAgent
75+
76+
- name: Build and push Sample-Apps with Auto-Instrumentation Agent
77+
run: jibBuildWithoutAgent
7778
env:
7879
COMMIT_HASH: ${{ inputs.image_tag }}
7980

.github/workflows/main-build.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,11 @@ jobs:
8989
with:
9090
registry: public.ecr.aws
9191

92-
- name: Build snapshot with Gradle
92+
- name: Setup Gradle
9393
uses: gradle/actions/setup-gradle@ed408507eac070d1f99cc633dbcf757c94c7933a #4.4.3
94-
with:
95-
arguments: build integrationTests snapshot --stacktrace -PenableCoverage=true -PlocalDocker=true
94+
95+
- name: Build snapshot with Gradle
96+
run: ./gradlew build integrationTests snapshot --stacktrace -PenableCoverage=true -PlocalDocker=true
9697
env:
9798
PUBLISH_TOKEN_USERNAME: ${{ secrets.PUBLISH_TOKEN_USERNAME }}
9899
PUBLISH_TOKEN_PASSWORD: ${{ secrets.PUBLISH_TOKEN_PASSWORD }}
@@ -221,10 +222,11 @@ jobs:
221222
- name: Pull base image of Contract Tests Sample Apps
222223
run: docker pull public.ecr.aws/docker/library/amazoncorretto:23-alpine
223224

224-
- name: Build snapshot with Gradle
225+
- name: Setup Gradle
225226
uses: gradle/actions/setup-gradle@ed408507eac070d1f99cc633dbcf757c94c7933a #v4.4.3
226-
with:
227-
arguments: contractTests -PlocalDocker=true
227+
228+
- name: Build snapshot with Gradle
229+
run: contractTests -PlocalDocker=true
228230

229231
application-signals-lambda-layer-build:
230232
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)