Skip to content

Commit cb6a836

Browse files
chore: Java 8 unit test to build code in Java 17 and run tests on Java 8 (#1800) (#2332)
* Our Java projects are configured to produce Java 8-compatible bytecode via https://togithub.com/googleapis/java-shared-config/blob/main/pom.xml#L848. This unit test change ensures this config is applied correctly. * This change also switches the JDK distribution of GitHub Actions to temurin from zulu. * For the repositories that mark "dependencies (8)" and "dependencies (11)" as required, they should point to only "dependencies (17)" via `.github/sync-repo-settings.yaml` and repo's Settings tab. Source-Link: https://togithub.com/googleapis/synthtool/commit/cbe010084fc59dc15730c86e9b8e03ddac1de050 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:32851debfefed2b66038e0141f1b5c2103bb59ba80b7475adbc10ef7abab3de7
1 parent d3b2a6e commit cb6a836

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

.github/.OwlBot.lock.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@
1313
# limitations under the License.
1414
docker:
1515
image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest
16-
digest: sha256:ad9cabee4c022f1aab04a71332369e0c23841062124818a4490f73337f790337
16+
digest: sha256:32851debfefed2b66038e0141f1b5c2103bb59ba80b7475adbc10ef7abab3de7
17+
# created: 2023-06-22T15:06:52.039318836Z

.github/dependabot.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,15 @@ updates:
55
schedule:
66
interval: "daily"
77
# Disable version updates for Maven dependencies
8-
open-pull-requests-limit: 0
8+
# we use renovate-bot as well as shared-dependencies BOM to update maven dependencies.
9+
ignore:
10+
- dependency-name: "*"
911
- package-ecosystem: "pip"
1012
directory: "/"
1113
schedule:
1214
interval: "daily"
1315
# Disable version updates for pip dependencies
14-
open-pull-requests-limit: 0
16+
# If a security vulnerability comes in, we will be notified about
17+
# it via template in the synthtool repository.
18+
ignore:
19+
- dependency-name: "*"

.kokoro/build.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ set +e
4747

4848
case ${JOB_TYPE} in
4949
test)
50-
mvn test -B -ntp -Dclirr.skip=true -Denforcer.skip=true
50+
echo "SUREFIRE_JVM_OPT: ${SUREFIRE_JVM_OPT}"
51+
mvn test -B -ntp -Dclirr.skip=true -Denforcer.skip=true ${SUREFIRE_JVM_OPT}
5152
RETURN_CODE=$?
5253
;;
5354
lint)

0 commit comments

Comments
 (0)