Skip to content

Commit 5584d17

Browse files
committed
Merge branch 'main' into gk/gradle9.0
* main: Fixed project creation for Gradle 6.0 in verify build workflow Fixes for older Gradle versions for the 'Verify build' workflow Changed wrapper bot gh token from readonly to GH_BOT_GITHUB_TOKEN Added testing with different Gradle version in the `Verify build` workflow Bump actions/checkout from 4 to 5 Bump com.gradleup.shadow from 8.3.8 to 9.0.1 Bump actions/download-artifact from 4 to 5
2 parents 872a317 + 09310f0 commit 5584d17

File tree

4 files changed

+79
-12
lines changed

4 files changed

+79
-12
lines changed

.github/workflows/build-verification.yml

Lines changed: 75 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Checkout
11-
uses: actions/checkout@v4
11+
uses: actions/checkout@v5
1212
- name: Set up JDK 21
1313
uses: actions/setup-java@v4
1414
with:
@@ -32,24 +32,81 @@ jobs:
3232
name: Test with Locally Published Plugin
3333
runs-on: ubuntu-latest
3434
needs: verification
35+
strategy:
36+
fail-fast: false
37+
matrix:
38+
include:
39+
- gradle-version: '5.0'
40+
java-version: '8'
41+
- gradle-version: '6.0'
42+
java-version: '8'
43+
- gradle-version: '6.5'
44+
java-version: '8'
45+
- gradle-version: '7.0'
46+
java-version: '8'
47+
- gradle-version: '8.0'
48+
java-version: '8'
49+
- gradle-version: '9.0.0'
50+
java-version: '21'
51+
- gradle-version: 'current'
52+
java-version: '21'
53+
- gradle-version: 'release-candidate'
54+
java-version: '21'
3555
steps:
3656
- name: Checkout
37-
uses: actions/checkout@v4
57+
uses: actions/checkout@v5
3858
- name: Set up JDK 21
3959
uses: actions/setup-java@v4
4060
with:
41-
java-version: '21'
61+
java-version: '${{ matrix.java-version }}'
4262
distribution: 'temurin'
4363
- name: Set up Gradle
4464
uses: gradle/actions/setup-gradle@v4
4565
with:
4666
develocity-access-key: ${{ secrets.DV_SOLUTIONS_ACCESS_KEY }}
67+
gradle-version: '${{ matrix.gradle-version }}'
4768
- name: Download plugin to maven local
48-
uses: actions/download-artifact@v4
69+
uses: actions/download-artifact@v5
4970
with:
5071
name: common-custom-user-data-gradle-plugin
5172
path: ~/.m2/repository/com/gradle
52-
- name: Create a test project
73+
- name: Create the test project for Gradle 5.0, 6.0 and 6.5
74+
if: matrix.gradle-version == '5.0' || matrix.gradle-version == '6.0' || matrix.gradle-version == '6.5'
75+
run: |
76+
{ [ "${{ matrix.gradle-version }}" == "5.0" ] && output_file="build.gradle" || output_file="settings.gradle"; }; echo """
77+
buildscript {
78+
repositories {
79+
mavenLocal()
80+
maven { url 'https://plugins.gradle.org/m2/' }
81+
}
82+
dependencies {
83+
classpath 'com.gradle.develocity:com.gradle.develocity.gradle.plugin:4+'
84+
classpath 'com.gradle.common-custom-user-data-gradle-plugin:com.gradle.common-custom-user-data-gradle-plugin.gradle.plugin:2+'
85+
}
86+
}
87+
88+
apply plugin: 'com.gradle.develocity'
89+
apply plugin: 'com.gradle.common-custom-user-data-gradle-plugin'
90+
91+
develocity {
92+
server = 'https://ge.solutions-team.gradle.com'
93+
}
94+
""" > ${{ runner.temp }}/"$output_file"
95+
96+
echo """
97+
rootProject.name = \"ccud-gradle-integration-test\"
98+
""" >> ${{ runner.temp }}/settings.gradle
99+
100+
echo """
101+
org.gradle.vfs.watch=true
102+
org.gradle.daemon=true
103+
org.gradle.parallel=true
104+
org.gradle.caching=true
105+
org.gradle.jvmargs=-Duser.language=en -Duser.country=US -Dfile.encoding=UTF-8
106+
""" > ${{ runner.temp }}/gradle.properties
107+
108+
- name: Create the test project for Gradle 7.0 and above
109+
if: matrix.gradle-version != '5.0' && matrix.gradle-version != '6.0' && matrix.gradle-version != '6.5'
53110
run: |
54111
echo """
55112
pluginManagement {
@@ -66,18 +123,28 @@ jobs:
66123
}
67124
}
68125
}
69-
126+
70127
plugins {
71128
id(\"com.gradle.develocity\") version \"4+\"
72129
id(\"com.gradle.common-custom-user-data-gradle-plugin\") version \"2+\"
73130
}
74-
131+
75132
develocity {
76133
server = \"https://ge.solutions-team.gradle.com\"
77134
}
78135
79136
rootProject.name = \"ccud-gradle-integration-test\"
80-
""" > ${{ runner.temp }}/settings.gradle.kts
137+
""" > ${{ runner.temp }}/settings.gradle
138+
139+
echo """
140+
org.gradle.vfs.watch=true
141+
org.gradle.daemon=true
142+
org.gradle.parallel=true
143+
org.gradle.caching=true
144+
org.gradle.configuration-cache=true
145+
org.gradle.unsafe.configuration-cache=true
146+
org.gradle.jvmargs=-Duser.language=en -Duser.country=US -Dfile.encoding=UTF-8
147+
""" > ${{ runner.temp }}/gradle.properties
81148
82149
- name: Run a build with the locally published plugin
83150
id: build-with-local-plugin

.github/workflows/submit-github-dependency-graph.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
generate-and-submit:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@v5
1515
- uses: actions/setup-java@v4
1616
with:
1717
distribution: temurin

.github/workflows/wrapper-upgrade-execution.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
git_commit_gpgsign: true
2424
git_config_global: true
2525
- name: Checkout
26-
uses: actions/checkout@v4
26+
uses: actions/checkout@v5
2727
- name: Set up JDK 21
2828
uses: actions/setup-java@v4
2929
with:
@@ -36,4 +36,4 @@ jobs:
3636
- name: Upgrade Wrappers
3737
run: ./gradlew clean upgradeGradleWrapperAll --continue -Porg.gradle.java.installations.auto-download=false
3838
env:
39-
WRAPPER_UPGRADE_GIT_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
WRAPPER_UPGRADE_GIT_TOKEN: ${{ secrets.GH_BOT_GITHUB_TOKEN }}

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ plugins {
55
id("com.gradle.plugin-publish") version "1.3.1"
66
id("com.github.breadmoirai.github-release") version "2.5.2"
77
id("org.gradle.wrapper-upgrade") version "0.12"
8-
id("com.gradleup.shadow") version "8.3.8"
8+
id("com.gradleup.shadow") version "9.0.1"
99
}
1010

1111
val releaseVersion = releaseVersion()

0 commit comments

Comments
 (0)