File tree Expand file tree Collapse file tree 4 files changed +10
-6
lines changed Expand file tree Collapse file tree 4 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 1
1
common --noenable_bzlmod
2
2
common --enable_workspace
3
- build --java_runtime_version=remotejdk_8
4
- build --java_language_version=8
3
+ build --java_runtime_version=remotejdk_11
4
+ build --java_language_version=11
5
5
6
6
# Hide Java 8 deprecation warnings.
7
7
common --javacopt=-Xlint:-options
Original file line number Diff line number Diff line change 35
35
repository-cache : true
36
36
- name : Bazel Output Version
37
37
run : bazelisk --version
38
+ - name : Java 8 Build
39
+ run : bazel build ... --java_language_version=8 --java_runtime_version=8
38
40
- name : Bazel Test
39
41
# Exclude codelab exercises as they are intentionally made to fail
40
42
run : bazelisk test ... --deleted_packages=//codelab/src/test/codelab --test_output=errors
Original file line number Diff line number Diff line change @@ -96,8 +96,8 @@ default_java_toolchain(
96
96
package_configuration = [
97
97
":error_prone" ,
98
98
],
99
- source_version = "8 " ,
100
- target_version = "8 " ,
99
+ source_version = "11 " ,
100
+ target_version = "11 " ,
101
101
)
102
102
103
103
# This associates a set of javac flags with a set of packages
Original file line number Diff line number Diff line change 26
26
27
27
28
28
ALL_TARGETS=(" //publish:cel.publish" " //publish:cel_compiler.publish" " //publish:cel_runtime.publish" " //publish:cel_v1alpha1.publish" " //publish:cel_protobuf.publish" )
29
+ JDK8_FLAGS=" --java_language_version=8 --java_runtime_version=8"
29
30
30
31
function publish_maven_remote() {
31
32
maven_repo_url=$1
@@ -41,7 +42,8 @@ function publish_maven_remote() {
41
42
--define gpg_sign=true \
42
43
--define " maven_user=$maven_user " \
43
44
--define " maven_password=$maven_password " \
44
- $PUBLISH_TARGET
45
+ $PUBLISH_TARGET \
46
+ $JDK8_FLAGS
45
47
done
46
48
47
49
}
78
80
echo " Pushing to local Maven repository $local_maven_repo "
79
81
for PUBLISH_TARGET in " ${ALL_TARGETS[@]} "
80
82
do
81
- bazel run --define " maven_repo=file://$local_maven_repo " $PUBLISH_TARGET
83
+ bazel run --define " maven_repo=file://$local_maven_repo " $PUBLISH_TARGET $JDK8_FLAGS
82
84
done
83
85
fi
You can’t perform that action at this time.
0 commit comments