Configure dependencies using the plugin
This CL changes gradle plugin to automatically include necessary
dependencies for data binding. This way, just applying data
binding to a project will be sufficient.
I've also updated version to .9 to get ready for preview release
Bug: 21262586
Change-Id: I12ba64915e69b383b507d155c1a16267356e059b
diff --git a/integration-tests/MultiModuleTestApp/app/build.gradle b/integration-tests/MultiModuleTestApp/app/build.gradle
index b09ed61..67a52d5 100644
--- a/integration-tests/MultiModuleTestApp/app/build.gradle
+++ b/integration-tests/MultiModuleTestApp/app/build.gradle
@@ -42,12 +42,10 @@
}
}
-println "combined ${config.testGroup}.independent-library:${config.snapshotVersion}"
+println "combined ${config.testGroup}.independent-library:${config.version}"
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
- compile "com.android.databinding:library:${config.snapshotVersion}"
compile project(':testlibrary')
compile "com.android.support:support-v4:+"
- provided "com.android.databinding:annotationprocessor:${config.snapshotVersion}"
- compile "${config.testGroup}:independent-library:${config.snapshotVersion}"
+ compile "${config.testGroup}:independent-library:${config.version}"
}
diff --git a/integration-tests/MultiModuleTestApp/build.gradle b/integration-tests/MultiModuleTestApp/build.gradle
index b9340e5..ddf912c 100644
--- a/integration-tests/MultiModuleTestApp/build.gradle
+++ b/integration-tests/MultiModuleTestApp/build.gradle
@@ -27,8 +27,8 @@
}
}
dependencies {
- classpath 'com.android.tools.build:gradle:1.1.3'
- classpath "com.android.databinding:dataBinder:${config.snapshotVersion}"
+ classpath "com.android.tools.build:gradle:${config.androidPluginVersion}"
+ classpath "com.android.databinding:dataBinder:${config.version}"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
diff --git a/integration-tests/MultiModuleTestApp/testlibrary/build.gradle b/integration-tests/MultiModuleTestApp/testlibrary/build.gradle
index 4b2c87c..bbcff86 100644
--- a/integration-tests/MultiModuleTestApp/testlibrary/build.gradle
+++ b/integration-tests/MultiModuleTestApp/testlibrary/build.gradle
@@ -43,6 +43,4 @@
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
- compile "com.android.databinding:library:${config.snapshotVersion}"
- provided "com.android.databinding:annotationprocessor:${config.snapshotVersion}"
}