Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Java 11 Example PreCommit GItHub Action #28291

Merged
merged 6 commits into from
Sep 6, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1089,8 +1089,9 @@ class BeamModulePlugin implements Plugin<Project> {
options.fork = true
options.forkOptions.javaHome = java11Home as File
options.compilerArgs += ['-Xlint:-path']
options.compilerArgs += ['-source', '11']
options.compilerArgs += ['-target', '11']
// TODO(https://github.com/apache/beam/pull/28234) Investigate why different options need to be set in Java 11/17
// Java11: --release 11; Java17: -source 17 -target 17; (Java 8 both work)
options.compilerArgs.addAll(['--release', '11'])
}
project.tasks.withType(Test) {
useJUnit()
Expand Down