Skip to content

Commit b8713d1

Browse files
authored
Merge pull request #34011 from github/repo-sync
repo sync
2 parents 2f7bd84 + 7f5ee67 commit b8713d1

File tree

3 files changed

+26
-26
lines changed

3 files changed

+26
-26
lines changed

content/actions/automating-builds-and-tests/building-and-testing-java-with-ant.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,19 +59,19 @@ jobs:
5959
6060
steps:
6161
- uses: {% data reusables.actions.action-checkout %}
62-
- name: Set up JDK 11
62+
- name: Set up JDK 17
6363
uses: {% data reusables.actions.action-setup-java %}
6464
with:
65-
java-version: '11'
66-
distribution: 'adopt'
65+
java-version: '17'
66+
distribution: 'temurin'
6767
- name: Build with Ant
6868
run: ant -noinput -buildfile build.xml
6969
```
7070

7171
This workflow performs the following steps:
7272

7373
1. The `checkout` step downloads a copy of your repository on the runner.
74-
2. The `setup-java` step configures the Java 11 JDK by Adoptium.
74+
2. The `setup-java` step configures the Eclipse Temurin (Java) 17 JDK by Eclipse Adoptium.
7575
3. The "Build with Ant" step runs the default target in your `build.xml` in non-interactive mode.
7676

7777
The default starter workflows are excellent starting points when creating your build and test workflow, and you can customize the starter workflow to suit your project’s needs.
@@ -93,8 +93,8 @@ steps:
9393
- uses: {% data reusables.actions.action-checkout %}
9494
- uses: {% data reusables.actions.action-setup-java %}
9595
with:
96-
java-version: '11'
97-
distribution: 'adopt'
96+
java-version: '17'
97+
distribution: 'temurin'
9898
- name: Run the Ant jar target
9999
run: ant -noinput -buildfile build-ci.xml jar
100100
```
@@ -110,8 +110,8 @@ steps:
110110
- uses: {% data reusables.actions.action-checkout %}
111111
- uses: {% data reusables.actions.action-setup-java %}
112112
with:
113-
java-version: '11'
114-
distribution: 'adopt'
113+
java-version: '17'
114+
distribution: 'temurin'
115115
116116
- run: ant -noinput -buildfile build.xml
117117
- uses: {% data reusables.actions.action-upload-artifact %}

content/actions/automating-builds-and-tests/building-and-testing-java-with-gradle.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ jobs:
6363
6464
steps:
6565
- uses: {% data reusables.actions.action-checkout %}
66-
- name: Set up JDK 11
66+
- name: Set up JDK 17
6767
uses: {% data reusables.actions.action-setup-java %}
6868
with:
69-
java-version: '11'
70-
distribution: 'adopt'
69+
java-version: '17'
70+
distribution: 'temurin'
7171
- name: Validate Gradle wrapper
7272
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b
7373
- name: Build with Gradle
@@ -79,7 +79,7 @@ jobs:
7979
This workflow performs the following steps:
8080

8181
1. The `checkout` step downloads a copy of your repository on the runner.
82-
2. The `setup-java` step configures the Java 11 JDK by Adoptium.
82+
2. The `setup-java` step configures the Eclipse Temurin (Java) 17 JDK by Eclipse Adoptium.
8383
3. The "Validate Gradle wrapper" step validates the checksums of Gradle Wrapper JAR files present in the source tree.
8484
4. The "Build with Gradle" step does a build using the `gradle/gradle-build-action` action provided by the Gradle organization on {% data variables.product.prodname_dotcom %}. The action takes care of invoking Gradle, collecting results, and caching state between jobs. For more information see [`gradle/gradle-build-action`](https://github.com/gradle/gradle-build-action).
8585

@@ -102,8 +102,8 @@ steps:
102102
- uses: {% data reusables.actions.action-checkout %}
103103
- uses: {% data reusables.actions.action-setup-java %}
104104
with:
105-
java-version: '11'
106-
distribution: 'adopt'
105+
java-version: '17'
106+
distribution: 'temurin'
107107
- name: Validate Gradle wrapper
108108
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b
109109
- name: Run the Gradle package task
@@ -133,8 +133,8 @@ steps:
133133
- uses: {% data reusables.actions.action-checkout %}
134134
- uses: {% data reusables.actions.action-setup-java %}
135135
with:
136-
java-version: '11'
137-
distribution: 'adopt'
136+
java-version: '17'
137+
distribution: 'temurin'
138138
- name: Validate Gradle wrapper
139139
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b
140140
- name: Build with Gradle

content/actions/automating-builds-and-tests/building-and-testing-java-with-maven.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,19 +59,19 @@ jobs:
5959
6060
steps:
6161
- uses: {% data reusables.actions.action-checkout %}
62-
- name: Set up JDK 11
62+
- name: Set up JDK 17
6363
uses: {% data reusables.actions.action-setup-java %}
6464
with:
65-
java-version: '11'
66-
distribution: 'adopt'
65+
java-version: '17'
66+
distribution: 'temurin'
6767
- name: Build with Maven
6868
run: mvn --batch-mode --update-snapshots package
6969
```
7070

7171
This workflow performs the following steps:
7272

7373
1. The `checkout` step downloads a copy of your repository on the runner.
74-
2. The `setup-java` step configures the Java 11 JDK by Adoptium.
74+
2. The `setup-java` step configures the Eclipse Temurin (Java) 17 JDK by Eclipse Adoptium.
7575
3. The "Build with Maven" step runs the Maven `package` target in non-interactive mode to ensure that your code builds, tests pass, and a package can be created.
7676

7777
The default starter workflows are excellent starting points when creating your build and test workflow, and you can customize the starter workflow to suit your project’s needs.
@@ -93,8 +93,8 @@ steps:
9393
- uses: {% data reusables.actions.action-checkout %}
9494
- uses: {% data reusables.actions.action-setup-java %}
9595
with:
96-
java-version: '11'
97-
distribution: 'adopt'
96+
java-version: '17'
97+
distribution: 'temurin'
9898
- name: Run the Maven verify phase
9999
run: mvn --batch-mode --update-snapshots verify
100100
```
@@ -111,8 +111,8 @@ steps:
111111
- name: Set up JDK 11
112112
uses: {% data reusables.actions.action-setup-java %}
113113
with:
114-
java-version: '11'
115-
distribution: 'adopt'
114+
java-version: '17'
115+
distribution: 'temurin'
116116
cache: maven
117117
- name: Build with Maven
118118
run: mvn --batch-mode --update-snapshots verify
@@ -133,8 +133,8 @@ steps:
133133
- uses: {% data reusables.actions.action-checkout %}
134134
- uses: {% data reusables.actions.action-setup-java %}
135135
with:
136-
java-version: '11'
137-
distribution: 'adopt'
136+
java-version: '17'
137+
distribution: 'temurin'
138138
- run: mvn --batch-mode --update-snapshots verify
139139
- run: mkdir staging && cp target/*.jar staging
140140
- uses: {% data reusables.actions.action-upload-artifact %}

0 commit comments

Comments
 (0)