diff options
author | Nick Korostelev <nkorsote@google.com> | 2014-08-05 11:32:47 -0700 |
---|---|---|
committer | Nick Korostelev <nkorsote@google.com> | 2014-08-08 11:19:28 -0700 |
commit | 148bb9297a696d586e003e85832ef4dc37ebce68 (patch) | |
tree | c58d9d39a27ca6bde2d97514f1aa763a19b734a5 /build.gradle | |
parent | 3fc9efc47047a3f22521fc2f3c81e11252675bf7 (diff) | |
download | junit-148bb9297a696d586e003e85832ef4dc37ebce68.tar.gz |
Introduced the ability to reference Junit build with dependencies from prebuilts
Workaround until all unbundled buids switch to using prebuilts
Change-Id: Ie6339f978846a861b78922903c555fd931701a67
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 51 |
1 files changed, 1 insertions, 50 deletions
diff --git a/build.gradle b/build.gradle index 6e0a62e..01e9133 100644 --- a/build.gradle +++ b/build.gradle @@ -1,34 +1,4 @@ -apply plugin: 'java' - -configurations { - // similar to 'default', export compile-time dependencies - host.extendsFrom(hostCompile) - target.extendsFrom(targetCompile) -} - -sourceSets { - host { - java { - srcDirs = ['src'] - } - } - - target { - java { - srcDirs = ['src'] - include 'org/**', - 'junit/extensions/**', - // remove these packages since they are in android.test.runner - // and proguard complains if they are present - // 'junit/runner/**', - // 'junit/textui/**', - 'junit/framework/ComparisonCompactor.java', - 'junit/framework/JUnit4TestAdapterCache.java', - 'junit/framework/JUnit4TestAdapter.java', - 'junit/framework/JUnit4TestCaseFacade.java' - } - } -} +apply from: "build-common.gradle" dependencies { targetCompile getAndroidPrebuilt('4') @@ -36,22 +6,3 @@ dependencies { hostCompile project(':hamcrest') } - -task targetJar(type: Jar) { - from sourceSets.target.output - dependsOn targetClasses - baseName "junit4" - classifier "target" -} - -task hostJar(type: Jar) { - from sourceSets.host.output - dependsOn hostClasses - baseName "junit4" - classifier "host" -} - -artifacts { - host hostJar - target targetJar -} |