aboutsummaryrefslogtreecommitdiff
path: root/gradle/build.gradle
diff options
context:
space:
mode:
authorXavier Ducrohet <xav@android.com>2012-12-07 18:50:44 -0800
committerXavier Ducrohet <xav@android.com>2012-12-10 17:01:07 -0800
commitcd3aa604316fa5c6c9486f2cb9caa3eaccd74476 (patch)
tree38455d4e69fb7dd84b1a8647b8f6289a61c60486 /gradle/build.gradle
parent3b49b176fcbfe1bbae0f63f769a39a3cb41c79ef (diff)
downloadbuild-cd3aa604316fa5c6c9486f2cb9caa3eaccd74476.tar.gz
Use the ResourceMerger to handle overlay.
This creates a merged res folder that is then fed to aapt. Right now the merged folder does not have its image crunched, nor is it incremental. This means the build will be slower (previously crunching was incremental). Next step is to change aapt to be able to crunch single images and then make the merging itself incremental. Details: The processImage task is replaced by mergeResourceTask. It is also used for library project that had to merge their resources before bundling, so the previous copy task is removed and the merge is done directly in the bundle folder. The API for AndroidBuilder is changed to reflect those changes. processResource now only takes one res folder which is meant to be the merged one. The getResourceInputs on VariantConfig is changed to return a list of ResourceSets (except not actual ResourceSet since this would load the resources, so instead a list of list of files). Also changed build.gradle for the gradle plugin to have the integration test first deploy the plugin locally in order to use the right one. Change-Id: Ide96f733be835d94518b831baee7ee77b9a61dec
Diffstat (limited to 'gradle/build.gradle')
-rw-r--r--gradle/build.gradle16
1 files changed, 8 insertions, 8 deletions
diff --git a/gradle/build.gradle b/gradle/build.gradle
index 4d09345..1800f9d 100644
--- a/gradle/build.gradle
+++ b/gradle/build.gradle
@@ -29,14 +29,6 @@ dependencies {
integrationTestRuntime configurations.testRuntime
}
-task integrationTest(type: Test, dependsOn: jar) {
- testClassesDir = sourceSets.integrationTest.output.classesDir
- classpath = sourceSets.integrationTest.runtimeClasspath
- systemProperties['jar.path'] = jar.archivePath
-}
-
-check.dependsOn integrationTest
-
idea {
module {
testSourceDirs += file('src/integration-test/groovy')
@@ -63,6 +55,14 @@ task publishLocal(type: Upload) {
}
}
+task integrationTest(type: Test, dependsOn: publishLocal) {
+ testClassesDir = sourceSets.integrationTest.output.classesDir
+ classpath = sourceSets.integrationTest.runtimeClasspath
+ systemProperties['jar.path'] = jar.archivePath
+}
+
+check.dependsOn integrationTest
+
uploadArchives {
repositories {
mavenDeployer {