aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorSøren Gjesse <sgjesse@google.com>2017-09-06 12:20:49 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-09-06 12:20:49 +0000
commit8109b59987ab7b03814960e4ec4d76f078f2fc2f (patch)
treefc89e22f4b6546378e91da2aed6eec5219619657 /build.gradle
parent81bef40a548caf5aba0707c337f64c9996f4f3f1 (diff)
parent1d21da79d7f7b915a12d8902b344345e24ad6cd1 (diff)
downloadr8-8109b59987ab7b03814960e4ec4d76f078f2fc2f.tar.gz
Merge "Add a simple Proguard comaptibility tool"
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle14
1 files changed, 14 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle
index 82feb0066..d13029e87 100644
--- a/build.gradle
+++ b/build.gradle
@@ -379,6 +379,20 @@ task CompatDx(type: Jar) {
}
}
+task CompatProguard(type: Jar) {
+ from sourceSets.main.output
+ baseName 'compatproguard'
+ manifest {
+ attributes 'Main-Class': 'com.android.tools.r8.compatproguard.CompatProguard'
+ }
+ // In order to build without dependencies, pass the exclude_deps property using:
+ // gradle -Pexclude_deps CompatProguard
+ if (!project.hasProperty('exclude_deps')) {
+ // Also include dependencies
+ from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
+ }
+}
+
task D8Logger(type: Jar) {
from sourceSets.main.output
baseName 'd8logger'