Skip to content

Commit ce12f8f

Browse files
authored
Add distribution for setup-java v2
1 parent 47b464e commit ce12f8f

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.github/workflows/ci-master.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- name: Set up JDK 1.8
2121
uses: actions/[email protected]
2222
with:
23+
distribution: 'adopt'
2324
java-version: 1.8
2425
- name: Build with Maven
2526
run: mvn --show-version --no-transfer-progress verify --file pom.xml -Pcoverage
@@ -34,6 +35,7 @@ jobs:
3435
- name: Set up JDK 11
3536
uses: actions/[email protected]
3637
with:
38+
distribution: 'adopt'
3739
java-version: 11
3840
- name: Analyze with SonarQube
3941
run: mvn --show-version --no-transfer-progress sonar:sonar --file pom.xml -Dsonar.organization=cloudbees -Dsonar.host.url=${SONAR_URL} -Dsonar.login=${SONAR_TOKEN}

.github/workflows/ci-pr.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- name: Set up JDK 1.8
2121
uses: actions/[email protected]
2222
with:
23+
distribution: 'adopt'
2324
java-version: 1.8
2425
- name: Build with Maven
2526
run: mvn --show-version --no-transfer-progress verify --file pom.xml -Pcoverage

0 commit comments

Comments
 (0)