diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b5be1c38bb16..c87c5d1c7cf1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ jobs: with: fetch-depth: 0 - - name: Set up JDK 11 for running checks + - name: Set up JDK 11 for running Gradle uses: actions/setup-java@v2 with: distribution: adopt @@ -39,6 +39,29 @@ jobs: S3_BUILD_CACHE_SECRET_KEY: ${{ secrets.S3_BUILD_CACHE_SECRET_KEY }} run: ./gradlew build --stacktrace + build-gradle-plugins: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2.3.4 + with: + fetch-depth: 0 + + - name: Set up JDK 11 for running Gradle + uses: actions/setup-java@v2 + with: + distribution: adopt + java-version: 11 + + - name: Cache Gradle Wrapper + uses: actions/cache@v2 + with: + path: ~/.gradle/wrapper + key: ${{ runner.os }}-gradle-wrapper-cache-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }} + + - name: Build + run: ../gradlew build --stacktrace + working-directory: gradle-plugins + test: runs-on: ubuntu-latest strategy: @@ -94,7 +117,7 @@ jobs: with: fetch-depth: 0 - - name: Set up JDK 11 + - name: Set up JDK 11 for running Gradle uses: actions/setup-java@v2 with: distribution: adopt @@ -238,7 +261,7 @@ jobs: with: fetch-depth: 0 - - name: Set up JDK 11 for running checks + - name: Set up JDK 11 for running Gradle uses: actions/setup-java@v2 with: distribution: adopt @@ -269,7 +292,7 @@ jobs: with: fetch-depth: 0 - - name: Set up JDK 11 for running checks + - name: Set up JDK 11 for running Gradle uses: actions/setup-java@v2 with: distribution: adopt diff --git a/.github/workflows/gradle-plugins-release.yml b/.github/workflows/gradle-plugins-release.yml index 5b4af9527cb6..98dc4a8bdc58 100644 --- a/.github/workflows/gradle-plugins-release.yml +++ b/.github/workflows/gradle-plugins-release.yml @@ -11,7 +11,7 @@ jobs: with: fetch-depth: 0 - - name: Set up JDK 11 for running checks + - name: Set up JDK 11 for running Gradle uses: actions/setup-java@v2 with: distribution: adopt diff --git a/.github/workflows/gradle-plugins-snapshot.yml b/.github/workflows/gradle-plugins-snapshot.yml index 4706e8dae18c..7e122152f1c4 100644 --- a/.github/workflows/gradle-plugins-snapshot.yml +++ b/.github/workflows/gradle-plugins-snapshot.yml @@ -17,7 +17,7 @@ jobs: with: fetch-depth: 0 - - name: Set up JDK 11 for running checks + - name: Set up JDK 11 for running Gradle uses: actions/setup-java@v2 with: distribution: adopt diff --git a/.github/workflows/nightly-no-cache.yml b/.github/workflows/nightly-no-cache.yml index 50cb383a0785..55cfb387bf03 100644 --- a/.github/workflows/nightly-no-cache.yml +++ b/.github/workflows/nightly-no-cache.yml @@ -14,7 +14,7 @@ jobs: with: fetch-depth: 0 - - name: Set up JDK 11 for running checks + - name: Set up JDK 11 for running Gradle uses: actions/setup-java@v2 with: distribution: adopt @@ -29,6 +29,29 @@ jobs: - name: Build run: ./gradlew build --stacktrace --no-build-cache + build-gradle-plugins: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2.3.4 + with: + fetch-depth: 0 + + - name: Set up JDK 11 for running Gradle + uses: actions/setup-java@v2 + with: + distribution: adopt + java-version: 11 + + - name: Cache Gradle Wrapper + uses: actions/cache@v2 + with: + path: ~/.gradle/wrapper + key: ${{ runner.os }}-gradle-wrapper-cache-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }} + + - name: Build + run: ../gradlew build --stacktrace --no-build-cache + working-directory: gradle-plugins + test: runs-on: ubuntu-latest strategy: @@ -75,7 +98,7 @@ jobs: with: fetch-depth: 0 - - name: Set up JDK 11 + - name: Set up JDK 11 for running Gradle uses: actions/setup-java@v2 with: distribution: adopt @@ -140,7 +163,7 @@ jobs: with: fetch-depth: 0 - - name: Set up JDK 11 for running checks + - name: Set up JDK 11 for running Gradle uses: actions/setup-java@v2 with: distribution: adopt diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index d9741c30150a..9884b1e0a7e0 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -14,7 +14,7 @@ jobs: with: fetch-depth: 0 - - name: Set up JDK 11 for running checks + - name: Set up JDK 11 for running Gradle uses: actions/setup-java@v2 with: distribution: adopt @@ -37,6 +37,29 @@ jobs: S3_BUILD_CACHE_SECRET_KEY: ${{ secrets.S3_BUILD_CACHE_SECRET_KEY }} run: ./gradlew build --stacktrace + build-gradle-plugins: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2.3.4 + with: + fetch-depth: 0 + + - name: Set up JDK 11 for running Gradle + uses: actions/setup-java@v2 + with: + distribution: adopt + java-version: 11 + + - name: Cache Gradle Wrapper + uses: actions/cache@v2 + with: + path: ~/.gradle/wrapper + key: ${{ runner.os }}-gradle-wrapper-cache-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }} + + - name: Build + run: ../gradlew build --stacktrace + working-directory: gradle-plugins + test: runs-on: ubuntu-latest strategy: @@ -92,7 +115,7 @@ jobs: with: fetch-depth: 0 - - name: Set up JDK 11 + - name: Set up JDK 11 for running Gradle uses: actions/setup-java@v2 with: distribution: adopt @@ -236,7 +259,7 @@ jobs: with: fetch-depth: 0 - - name: Set up JDK 11 for running checks + - name: Set up JDK 11 for running Gradle uses: actions/setup-java@v2 with: distribution: adopt diff --git a/.github/workflows/patch-release-build.yml b/.github/workflows/patch-release-build.yml index d2be2948b1ee..708dd851f792 100644 --- a/.github/workflows/patch-release-build.yml +++ b/.github/workflows/patch-release-build.yml @@ -155,7 +155,7 @@ jobs: ref: ${{ needs.prepare-release-branch.outputs.release-branch-name }} fetch-depth: 0 - - name: Set up JDK 11 for running checks + - name: Set up JDK 11 for running Gradle uses: actions/setup-java@v2 with: distribution: adopt @@ -180,7 +180,8 @@ jobs: ref: ${{ needs.prepare-release-branch.outputs.release-branch-name }} fetch-depth: 0 - - uses: actions/setup-java@v2 + - name: Set up JDK 11 for running Gradle + uses: actions/setup-java@v2 with: distribution: adopt java-version: 11 diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 7726700f7ba4..ef5a5e040178 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -14,7 +14,7 @@ jobs: with: fetch-depth: 0 - - name: Set up JDK 11 for running checks + - name: Set up JDK 11 for running Gradle uses: actions/setup-java@v2 with: distribution: adopt @@ -53,6 +53,29 @@ jobs: path: "**/javacore.*.txt" if-no-files-found: ignore + build-gradle-plugins: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2.3.4 + with: + fetch-depth: 0 + + - name: Set up JDK 11 for running Gradle + uses: actions/setup-java@v2 + with: + distribution: adopt + java-version: 11 + + - name: Cache Gradle Wrapper + uses: actions/cache@v2 + with: + path: ~/.gradle/wrapper + key: ${{ runner.os }}-gradle-wrapper-cache-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }} + + - name: Build + run: ../gradlew build --stacktrace + working-directory: gradle-plugins + test: runs-on: ubuntu-latest strategy: @@ -237,7 +260,7 @@ jobs: with: fetch-depth: 0 - - name: Set up JDK 11 for running checks + - name: Set up JDK 11 for running Gradle uses: actions/setup-java@v2 with: distribution: adopt diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index 966b95a32bab..9ca42e579816 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -110,7 +110,7 @@ jobs: with: fetch-depth: 0 - - name: Set up JDK 11 for running checks + - name: Set up JDK 11 for running Gradle uses: actions/setup-java@v2 with: distribution: adopt @@ -135,7 +135,8 @@ jobs: with: fetch-depth: 0 - - uses: actions/setup-java@v2 + - name: Set up JDK 11 for running Gradle + uses: actions/setup-java@v2 with: distribution: adopt java-version: 11