Clean up examples github actions job
MODIFY
.github/workflows/ci.yml
.github/workflows/ci.yml
@@ -167,37 +167,29 @@ jobs:
distribution: adopt
java-version: 11
- - name: Local publish of artifacts
+ - name: Set up gradle cache
uses: gradle/gradle-build-action@v2
- with:
+
+ - name: Local publish of artifacts
# javadoc task fails sporadically fetching https://docs.oracle.com/javase/8/docs/api/
- arguments: publishToMavenLocal -x javadoc
+ run: ./gradlew publishToMavenLocal -x javadoc
- name: Local publish of gradle plugins
- uses: gradle/gradle-build-action@v2
- with:
# javadoc task fails sporadically fetching https://docs.oracle.com/javase/8/docs/api/
- arguments: publishToMavenLocal -x javadoc
- build-root-directory: gradle-plugins
+ run: ./gradlew publishToMavenLocal -x javadoc
+ working-directory: gradle-plugins
- name: Build distro
- uses: gradle/gradle-build-action@v2
- with:
- arguments: build --init-script ../../.github/scripts/local.init.gradle.kts
- build-root-directory: examples/distro
+ run: ./gradlew build --init-script ../../.github/scripts/local.init.gradle.kts
+ working-directory: examples/distro
- name: Build extension
- uses: gradle/gradle-build-action@v2
- with:
- arguments: build --init-script ../../.github/scripts/local.init.gradle.kts
- build-root-directory: examples/extension
+ run: ./gradlew build --init-script ../../.github/scripts/local.init.gradle.kts
+ working-directory: examples/extension
- name: Run muzzle check against extension
- uses: gradle/gradle-build-action@v2
- with:
- cache-read-only: true
- arguments: muzzle --init-script ../../.github/scripts/local.init.gradle.kts
- build-root-directory: examples/extension
+ run: ./gradlew muzzle --init-script ../../.github/scripts/local.init.gradle.kts
+ working-directory: examples/extension
snapshot:
runs-on: ubuntu-latest

MODIFY
.github/workflows/nightly-no-cache.yml
.github/workflows/nightly-no-cache.yml
@@ -150,36 +150,29 @@ jobs:
distribution: adopt
java-version: 11
- - name: Local publish of artifacts
+ - name: Set up gradle cache
uses: gradle/gradle-build-action@v2
- with:
+
+ - name: Local publish of artifacts
# javadoc task fails sporadically fetching https://docs.oracle.com/javase/8/docs/api/
- arguments: publishToMavenLocal -x javadoc
+ run: ./gradlew publishToMavenLocal -x javadoc
- name: Local publish of gradle plugins
- uses: gradle/gradle-build-action@v2
- with:
# javadoc task fails sporadically fetching https://docs.oracle.com/javase/8/docs/api/
- arguments: publishToMavenLocal -x javadoc
- build-root-directory: gradle-plugins
+ run: ./gradlew publishToMavenLocal -x javadoc
+ working-directory: gradle-plugins
- name: Build distro
- uses: gradle/gradle-build-action@v2
- with:
- arguments: build --init-script ../../.github/scripts/local.init.gradle.kts --no-build-cache
- build-root-directory: examples/distro
+ run: ./gradlew build --init-script ../../.github/scripts/local.init.gradle.kts --no-build-cache
+ working-directory: examples/distro
- name: Build extension
- uses: gradle/gradle-build-action@v2
- with:
- arguments: build --init-script ../../.github/scripts/local.init.gradle.kts --no-build-cache
- build-root-directory: examples/extension
+ run: ./gradlew build --init-script ../../.github/scripts/local.init.gradle.kts --no-build-cache
+ working-directory: examples/extension
- name: Run muzzle check against extension
- uses: gradle/gradle-build-action@v2
- with:
- arguments: muzzle --init-script ../../.github/scripts/local.init.gradle.kts
- build-root-directory: examples/extension
+ run: ./gradlew muzzle --init-script ../../.github/scripts/local.init.gradle.kts
+ working-directory: examples/extension
issue:
name: Open issue on failure

MODIFY
.github/workflows/nightly.yml
.github/workflows/nightly.yml
@@ -158,37 +158,29 @@ jobs:
distribution: adopt
java-version: 11
- - name: Local publish of artifacts
+ - name: Set up gradle cache
uses: gradle/gradle-build-action@v2
- with:
+
+ - name: Local publish of artifacts
# javadoc task fails sporadically fetching https://docs.oracle.com/javase/8/docs/api/
- arguments: publishToMavenLocal -x javadoc
+ run: ./gradlew publishToMavenLocal -x javadoc
- name: Local publish of gradle plugins
- uses: gradle/gradle-build-action@v2
- with:
# javadoc task fails sporadically fetching https://docs.oracle.com/javase/8/docs/api/
- arguments: publishToMavenLocal -x javadoc
- build-root-directory: gradle-plugins
+ run: ./gradlew publishToMavenLocal -x javadoc
+ working-directory: gradle-plugins
- name: Build distro
- uses: gradle/gradle-build-action@v2
- with:
- arguments: build --init-script ../../.github/scripts/local.init.gradle.kts
- build-root-directory: examples/distro
+ run: ./gradlew build --init-script ../../.github/scripts/local.init.gradle.kts
+ working-directory: examples/distro
- name: Build extension
- uses: gradle/gradle-build-action@v2
- with:
- arguments: build --init-script ../../.github/scripts/local.init.gradle.kts
- build-root-directory: examples/extension
+ run: ./gradlew build --init-script ../../.github/scripts/local.init.gradle.kts
+ working-directory: examples/extension
- name: Run muzzle check against extension
- uses: gradle/gradle-build-action@v2
- with:
- cache-read-only: true
- arguments: muzzle --init-script ../../.github/scripts/local.init.gradle.kts
- build-root-directory: examples/extension
+ run: ./gradlew muzzle --init-script ../../.github/scripts/local.init.gradle.kts
+ working-directory: examples/extension
issue:
name: Open issue on failure

MODIFY
.github/workflows/pr.yml
.github/workflows/pr.yml
@@ -215,41 +215,31 @@ jobs:
distribution: adopt
java-version: 11
- - name: Local publish of artifacts
+ - name: Set up gradle cache
uses: gradle/gradle-build-action@v2
with:
cache-read-only: true
+
+ - name: Local publish of artifacts
# javadoc task fails sporadically fetching https://docs.oracle.com/javase/8/docs/api/
- arguments: publishToMavenLocal -x javadoc
+ run: ./gradlew publishToMavenLocal -x javadoc
- name: Local publish of gradle plugins
- uses: gradle/gradle-build-action@v2
- with:
- cache-read-only: true
# javadoc task fails sporadically fetching https://docs.oracle.com/javase/8/docs/api/
- arguments: publishToMavenLocal -x javadoc
- build-root-directory: gradle-plugins
+ run: ./gradlew publishToMavenLocal -x javadoc
+ working-directory: gradle-plugins
- name: Build distro
- uses: gradle/gradle-build-action@v2
- with:
- cache-read-only: true
- arguments: build --init-script ../../.github/scripts/local.init.gradle.kts
- build-root-directory: examples/distro
+ run: ./gradlew build --init-script ../../.github/scripts/local.init.gradle.kts
+ working-directory: examples/distro
- name: Build extension
- uses: gradle/gradle-build-action@v2
- with:
- cache-read-only: true
- arguments: build --init-script ../../.github/scripts/local.init.gradle.kts
- build-root-directory: examples/extension
+ run: ./gradlew build --init-script ../../.github/scripts/local.init.gradle.kts
+ working-directory: examples/extension
- name: Run muzzle check against extension
- uses: gradle/gradle-build-action@v2
- with:
- cache-read-only: true
- arguments: muzzle --init-script ../../.github/scripts/local.init.gradle.kts
- build-root-directory: examples/extension
+ run: ./gradlew muzzle --init-script ../../.github/scripts/local.init.gradle.kts
+ working-directory: examples/extension
accept-pr:
needs: [ build, test, smoke-test, muzzle, examples ]

MODIFY
.github/workflows/release-gradle-plugins.yml
.github/workflows/release-gradle-plugins.yml
@@ -104,37 +104,29 @@ jobs:
distribution: adopt
java-version: 11
- - name: Local publish of artifacts
+ - name: Set up gradle cache
uses: gradle/gradle-build-action@v2
- with:
+
+ - name: Local publish of artifacts
# javadoc task fails sporadically fetching https://docs.oracle.com/javase/8/docs/api/
- arguments: publishToMavenLocal -x javadoc
+ run: ./gradlew publishToMavenLocal -x javadoc
- name: Local publish of gradle plugins
- uses: gradle/gradle-build-action@v2
- with:
# javadoc task fails sporadically fetching https://docs.oracle.com/javase/8/docs/api/
- arguments: publishToMavenLocal -x javadoc
- build-root-directory: gradle-plugins
+ run: ./gradlew publishToMavenLocal -x javadoc
+ working-directory: gradle-plugins
- name: Build distro
- uses: gradle/gradle-build-action@v2
- with:
- arguments: build --init-script ../../.github/scripts/local.init.gradle.kts
- build-root-directory: examples/distro
+ run: ./gradlew build --init-script ../../.github/scripts/local.init.gradle.kts
+ working-directory: examples/distro
- name: Build extension
- uses: gradle/gradle-build-action@v2
- with:
- arguments: build --init-script ../../.github/scripts/local.init.gradle.kts
- build-root-directory: examples/extension
+ run: ./gradlew build --init-script ../../.github/scripts/local.init.gradle.kts
+ working-directory: examples/extension
- name: Run muzzle check against extension
- uses: gradle/gradle-build-action@v2
- with:
- arguments: muzzle --init-script ../../.github/scripts/local.init.gradle.kts
- build-root-directory: examples/extension
- cache-read-only: true
+ run: ./gradlew muzzle --init-script ../../.github/scripts/local.init.gradle.kts
+ working-directory: examples/extension
release:
needs: [ test, smoke-test, examples ]

MODIFY
.github/workflows/release.yml
.github/workflows/release.yml
@@ -96,37 +96,29 @@ jobs:
distribution: adopt
java-version: 11
- - name: Local publish of artifacts
+ - name: Set up gradle cache
uses: gradle/gradle-build-action@v2
- with:
+
+ - name: Local publish of artifacts
# javadoc task fails sporadically fetching https://docs.oracle.com/javase/8/docs/api/
- arguments: publishToMavenLocal -x javadoc
+ run: ./gradlew publishToMavenLocal -x javadoc
- name: Local publish of gradle plugins
- uses: gradle/gradle-build-action@v2
- with:
# javadoc task fails sporadically fetching https://docs.oracle.com/javase/8/docs/api/
- arguments: publishToMavenLocal -x javadoc
- build-root-directory: gradle-plugins
+ run: ./gradlew publishToMavenLocal -x javadoc
+ working-directory: gradle-plugins
- name: Build distro
- uses: gradle/gradle-build-action@v2
- with:
- arguments: build --init-script ../../.github/scripts/local.init.gradle.kts
- build-root-directory: examples/distro
+ run: ./gradlew build --init-script ../../.github/scripts/local.init.gradle.kts
+ working-directory: examples/distro
- name: Build extension
- uses: gradle/gradle-build-action@v2
- with:
- arguments: build --init-script ../../.github/scripts/local.init.gradle.kts
- build-root-directory: examples/extension
+ run: ./gradlew build --init-script ../../.github/scripts/local.init.gradle.kts
+ working-directory: examples/extension
- name: Run muzzle check against extension
- uses: gradle/gradle-build-action@v2
- with:
- arguments: muzzle --init-script ../../.github/scripts/local.init.gradle.kts
- build-root-directory: examples/extension
- cache-read-only: true
+ run: ./gradlew muzzle --init-script ../../.github/scripts/local.init.gradle.kts
+ working-directory: examples/extension
release:
needs: [ test, smoke-test, examples ]

Clean up examples github actions job (#5459)