aboutsummaryrefslogtreecommitdiff
path: root/rules.gradle
diff options
context:
space:
mode:
authorXavier Ducrohet <xav@google.com>2014-02-26 09:42:42 -0800
committerXavier Ducrohet <xav@google.com>2014-02-26 09:48:31 -0800
commit0e274c1696fe3f7f97f6da02cefba2f3b16e7886 (patch)
tree40c5da8c4dbdeb056c9a67dc70a2980c1668f8d9 /rules.gradle
parent5d39be383737dbcfdaadfe4b9b809bb199861f15 (diff)
downloadvolley-0e274c1696fe3f7f97f6da02cefba2f3b16e7886.tar.gz
Fix gradle issue.
For internal builds we don't want to reference mavenCentral, so this CL splits the build.gradle in 2 files. The main one only sets up the classpath of the build using mavenCentral, while the other contains the actual build rules (rules.gradle). The main file also applies the rules file so that no manual setup is required. It's all transparent for a standalone project. When building internally, we'll redirect the build to use rules.gradle directly instead of build.gradle, bypassing the mavenCentral setup. Change-Id: I7d334a5ddbdf40a856bf24ca9f41d3b8f61230ff
Diffstat (limited to 'rules.gradle')
-rw-r--r--rules.gradle30
1 files changed, 30 insertions, 0 deletions
diff --git a/rules.gradle b/rules.gradle
new file mode 100644
index 0000000..be99df9
--- /dev/null
+++ b/rules.gradle
@@ -0,0 +1,30 @@
+apply plugin: 'android-library'
+
+android {
+ compileSdkVersion 19
+ buildToolsVersion = '19.0.1'
+
+ sourceSets {
+ defaultConfig {
+ testPackageName 'com.android.volley.tests'
+ }
+
+ main {
+ assets.srcDirs = ['assets']
+ res.srcDirs = ['res']
+ aidl.srcDirs = ['src']
+ resources.srcDirs = ['src']
+ renderscript.srcDirs = ['src']
+ java.srcDirs = ['src']
+ manifest.srcFile 'AndroidManifest.xml'
+
+ }
+
+ instrumentTest.setRoot('tests')
+ instrumentTest.java.srcDirs = ['tests/src']
+ }
+ lintOptions {
+ // TODO: fix errors and reenable.
+ abortOnError false
+ }
+}