aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwen Gray <owengray@google.com>2019-10-15 17:36:14 +0000
committerOwen Gray <owengray@google.com>2019-10-15 18:57:36 +0000
commitce79c305093e4eb799cc73cbc4181c1bd0505fd8 (patch)
tree404ac35fe67525df7b0aa5596b9b12313f43ac55
parent6edbab822b449f0c92f609ecf4cf051d43e7eec2 (diff)
downloadsupport-ce79c305093e4eb799cc73cbc4181c1bd0505fd8.tar.gz
Disable jar creation from compose-runtime.
Test: ui/gw compose:compose-runtime:uploadArchives Bug: b/142408067, b/142727330 Change-Id: Id15a15d9e4f43dfabeba050c88b506a17619a1e9
-rw-r--r--compose/compose-runtime/build.gradle10
1 files changed, 10 insertions, 0 deletions
diff --git a/compose/compose-runtime/build.gradle b/compose/compose-runtime/build.gradle
index de2185c3c60..b868794fdb1 100644
--- a/compose/compose-runtime/build.gradle
+++ b/compose/compose-runtime/build.gradle
@@ -67,3 +67,13 @@ androidx {
inceptionYear = "2019"
description = "Contains support code for tree composition"
}
+
+//TODO: figure out the trigger for this logic being needed and move it to AndroidX(UI)Plugin
+// or else decide we *should* be making jars and get other people to not break. b/142408067
+afterEvaluate {
+ configurations.archives.artifacts.each {
+ if (it.file.name.endsWith('jar') && !it.file.name.endsWith('sources.jar')) {
+ configurations.archives.artifacts.remove(it)
+ }
+ }
+}