Skip to content

Commit 2468276

Browse files
authored
ci: release=8 for JDK 9+ (#478)
* ci: release=8 for JDK 9+ * ci: removing "dependencies (8)"
1 parent 34993d5 commit 2468276

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

.github/sync-repo-settings.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ branchProtectionRules:
2929
requiresStrictStatusChecks: false
3030
# List of required status check contexts that must pass for commits to be accepted to matching branches.
3131
requiredStatusCheckContexts:
32-
- "dependencies (8)"
3332
- "dependencies (11)"
3433
- "lint"
3534
- "clirr"

.github/workflows/downstream-dependencies.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
strategy:
1111
fail-fast: false
1212
matrix:
13-
java: [8, 11]
13+
java: [11]
1414
repo:
1515
- java-bigquery
1616
- java-bigqueryconnection
@@ -27,5 +27,3 @@ jobs:
2727
- run: sudo apt-get update -y
2828
- run: sudo apt-get install libxml2-utils
2929
- run: .kokoro/client-library-check.sh ${{matrix.repo}} dependencies
30-
if: ${{matrix.java != '8' }}
31-
# Always successful for Java 8, which we'll remove soon

pom.xml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -833,6 +833,17 @@
833833
</plugins>
834834
</build>
835835
</profile>
836-
836+
<profile>
837+
<!-- JDK 9+ has the "release" option to ensure the generated bytecode is
838+
compatible with Java 8. Maven-compiler-plugin's "<target>1.8</target>" is
839+
not sufficient. -->
840+
<id>compiler-release-8</id>
841+
<activation>
842+
<jdk>[9,]</jdk>
843+
</activation>
844+
<properties>
845+
<maven.compiler.release>8</maven.compiler.release>
846+
</properties>
847+
</profile>
837848
</profiles>
838849
</project>

0 commit comments

Comments
 (0)