Skip to content

Commit d94c7bc

Browse files
Merge pull request #118 from Contrast-Security-OSS/JAVA-3733-scaffold-for-gradle-plugin
JAVA-3733 fix build workflow
2 parents 8bacf20 + 3fdbc44 commit d94c7bc

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.github/workflows/build-gradle-plugin.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,16 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Checkout
17-
uses: actions/checkout@bc6bd473bfd218b1718cf9d88aa51c89cced7826e06508014f0aca5888938c77 # v4.2.1
18-
run: echo "The ${{ github.repository }} repo has been cloned to the runner
17+
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
1918

2019
- name: Setup Java
21-
uses: actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2 # v3.11.0
20+
uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2
2221
with:
2322
java-version: 11
2423
distribution: temurin
2524

2625
- name: 🐘 Setup Gradle
27-
uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2
26+
uses: gradle/actions/setup-gradle@v4
2827

2928
- name: Build Gradle Plugin
30-
run: ./gradle-plugin/gradlew -p gradle-plugin/ build
29+
run: cd gradle-plugin/ && ./gradlew build

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,8 @@ local.properties
262262
# Typically, this file would be tracked if it contains build/dependency configurations:
263263
.project
264264

265+
# need gradle wrapper, and jar files are usually ignored
266+
!gradle-plugin/gradle/wrapper/gradle-wrapper.jar
265267
# Gradle build directories
266268
gradle-plugin/.gradle
267269
gradle-plugin/build
59.3 KB
Binary file not shown.

0 commit comments

Comments
 (0)