summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Warrington <cmw@google.com>2021-10-21 17:06:24 +0000
committerChris Warrington <cmw@google.com>2021-10-21 17:08:24 +0000
commite192e645140836c973529d5904945c898bef8e7c (patch)
treeaf7a46046df6266c50d5a52d0b0e4641535edbb1
parent7cab6fdd3e4751b34892f41fc60808bae6548b1c (diff)
downloaddata-binding-e192e645140836c973529d5904945c898bef8e7c.tar.gz
Revert "[Hybrid build] data binding is built with bazel"
Reason for revert: Breaks androidx integration branch as the gradle build that builds the data binding runtime was also removed. Reverted Changes: Id2adb5662:[Hybrid build] data binding is built with bazel Ib89cdb17b:[Hybrid build] data-binding is built with bazel I38979ba2b:[Hybrid build] data binding is built with bazel Bug: 143864616 Test: GmavenZipTest Change-Id: I302a96a2a6b9b56286983edd450dcee84c4b7660
-rw-r--r--BUILD.bazel33
1 files changed, 27 insertions, 6 deletions
diff --git a/BUILD.bazel b/BUILD.bazel
index 618e7010..4e70877d 100644
--- a/BUILD.bazel
+++ b/BUILD.bazel
@@ -40,7 +40,6 @@ 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",
@@ -54,7 +53,6 @@ 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",
@@ -131,8 +129,6 @@ 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"],
@@ -218,8 +214,6 @@ 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(
@@ -372,3 +366,30 @@ 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__"],
+)