diff options
author | Matthew Gharrity <gharrma@google.com> | 2022-04-11 16:03:42 -0700 |
---|---|---|
committer | Matthew Gharrity <gharrma@google.com> | 2022-04-12 12:34:44 -0700 |
commit | 9617ed43436995b5bda5de688f541cef5b0b9c88 (patch) | |
tree | e45629e866fd7e6ba020e532b8464ae2baa14264 | |
parent | 0400d787250ec8f0d37d6a068a649c02757c268c (diff) | |
download | data-binding-9617ed43436995b5bda5de688f541cef5b0b9c88.tar.gz |
Bump databinding Java version to 8
...since Java 6 is obsolete.
Bug: tangentially related to b/216663891
Test: existing
Change-Id: I2f3b186535056a2dad7ba57dcb1b1439c3be1631
-rw-r--r-- | BUILD.bazel | 10 | ||||
-rw-r--r-- | baseLibrary/db-baseLibrary.iml | 2 | ||||
-rw-r--r-- | baseLibrarySupport/db-baseLibrarySupport.iml | 2 |
3 files changed, 4 insertions, 10 deletions
diff --git a/BUILD.bazel b/BUILD.bazel index 696dce52..c4f8af34 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -41,10 +41,7 @@ maven_library( srcs = glob(["baseLibrary/src/main/java/**"]), coordinates = "androidx.databinding:databinding-common:" + BUILD_VERSION, description = "Shared library between Data Binding runtime lib and compiler", - javacopts = [ - "-source 6", - "-target 6", - ], + javacopts = ["--release 8"], notice = "baseLibrary/NOTICE", resource_strip_prefix = "tools/data-binding/baseLibrary", visibility = ["//visibility:public"], @@ -55,10 +52,7 @@ maven_library( srcs = glob(["baseLibrarySupport/src/main/java/**"]), coordinates = "com.android.databinding:baseLibrary:" + BUILD_VERSION, description = "Shared library between Data Binding runtime lib and compiler", - javacopts = [ - "-source 6", - "-target 6", - ], + javacopts = ["--release 8"], notice = "baseLibrary/NOTICE", resource_strip_prefix = "tools/data-binding/baseLibrary", visibility = ["//visibility:public"], diff --git a/baseLibrary/db-baseLibrary.iml b/baseLibrary/db-baseLibrary.iml index 06b2d8d6..5b922747 100644 --- a/baseLibrary/db-baseLibrary.iml +++ b/baseLibrary/db-baseLibrary.iml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <module relativePaths="true" type="JAVA_MODULE" version="4"> - <component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_6" inherit-compiler-output="true"> + <component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8" inherit-compiler-output="true"> <exclude-output /> <content url="file://$MODULE_DIR$"> <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" /> diff --git a/baseLibrarySupport/db-baseLibrarySupport.iml b/baseLibrarySupport/db-baseLibrarySupport.iml index ee480a8b..92ee5150 100644 --- a/baseLibrarySupport/db-baseLibrarySupport.iml +++ b/baseLibrarySupport/db-baseLibrarySupport.iml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <module relativePaths="true" type="JAVA_MODULE" version="4"> - <component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_6" inherit-compiler-output="true"> + <component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8" inherit-compiler-output="true"> <exclude-output /> <content url="file://$MODULE_DIR$"> <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" /> |