diff options
author | Chris Warrington <cmw@google.com> | 2021-10-25 15:12:31 +0000 |
---|---|---|
committer | Chris Warrington <cmw@google.com> | 2021-10-25 16:51:20 +0100 |
commit | ce3fa8d657ac3570aa164e57a7384f617bc5ce6c (patch) | |
tree | 065c710c41b90a04b718c3a47057d7b13494d061 | |
parent | e192e645140836c973529d5904945c898bef8e7c (diff) | |
download | data-binding-ce3fa8d657ac3570aa164e57a7384f617bc5ce6c.tar.gz |
[Hybrid build] data binding is built with bazel
Reapplied, including the root data-binding project still so :pL still
builds the data binding runtime.
Bug: 143864616
Test: GmavenZipTest
Change-Id: I92b0d1154736039ae74a91acd6cb4cb6e61b4d2e
-rw-r--r-- | BUILD.bazel | 33 |
1 files changed, 6 insertions, 27 deletions
diff --git a/BUILD.bazel b/BUILD.bazel index 4e70877d..618e7010 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -40,6 +40,7 @@ maven_library( name = "tools.baseLibrary", 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", @@ -53,6 +54,7 @@ maven_library( name = "tools.baseLibrarySupport", 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", @@ -129,6 +131,8 @@ maven_library( "compilerCommon/src/main/**/*.java", ]), coordinates = "androidx.databinding:databinding-compiler-common:" + BUILD_VERSION, + description = "Common library that can be shared between different build tools", + module_name = "databinding-compiler-common", notice = "compilerCommon/NOTICE", resource_strip_prefix = "tools/data-binding", resources = [":tools.compilerCommon.resources"], @@ -214,6 +218,8 @@ maven_library( "compiler/src/main/**/*.kt", ]), coordinates = "androidx.databinding:databinding-compiler:" + BUILD_VERSION, + description = "The annotation processor for Data Binding. Generates binding classes for runtime.", + module_name = "databinding-compiler", notice = "compiler/src/main/resources/NOTICE.txt", resource_strip_prefix = "tools/data-binding/compiler/src/main/resources", resources = glob( @@ -366,30 +372,3 @@ alias( actual = ":data_binding_runtime", visibility = ["//visibility:public"], ) - -filegroup( - name = "agp_gradle_build_files", - srcs = glob([ - "baseLibrary/src/main/java/**", - "baseLibrarySupport/src/main/java/**", - "compiler/src/main/**/*.java", - "compiler/src/main/**/*.kt", - "compiler/src/main/resources/**", - "compilerCommon/src/main/**/*.java", - "compilerCommon/src/main/**/*.kt", - "compilerCommon/src/main/resources/**", - "integration-tests/*/build.gradle", - ]) + [ - "propLoader.gradle", - "build.gradle", - "baseLibrary/build.gradle", - "baseLibrary/NOTICE", - "baseLibrarySupport/build.gradle", - "baseLibrarySupport/NOTICE", - "compiler/build.gradle", - "compilerCommon/build.gradle", - "compilerCommon/NOTICE", - "databinding.properties", - ], - visibility = ["//tools/base/build-system:__pkg__"], -) |