Jeff Davidson | 40d0011 | 2014-12-08 14:16:59 -0800 | [diff] [blame] | 1 | // NOTE: The only changes that belong in this file are the definitions |
| 2 | // of tool versions (gradle plugin, compile SDK, build tools), so that |
| 3 | // Volley can be built via gradle as a standalone project. |
| 4 | // |
| 5 | // Any other changes to the build config belong in rules.gradle, which |
| 6 | // is used by projects that depend on Volley but define their own |
| 7 | // tools versions across all dependencies to ensure a consistent build. |
Michal Bendowski | ab60b7c | 2015-06-09 17:34:36 +0100 | [diff] [blame] | 8 | // |
| 9 | // Most users should just add this line to settings.gradle: |
| 10 | // include(":volley") |
| 11 | // |
| 12 | // If you have a more complicated Gradle setup you can choose to use |
| 13 | // this instead: |
| 14 | // include(":volley") |
| 15 | // project(':volley').buildFileName = 'rules.gradle' |
Jeff Davidson | 40d0011 | 2014-12-08 14:16:59 -0800 | [diff] [blame] | 16 | |
Ficus Kirkpatrick | 4e82015 | 2014-02-08 13:31:24 -0800 | [diff] [blame] | 17 | buildscript { |
| 18 | repositories { |
Michal Bendowski | ab60b7c | 2015-06-09 17:34:36 +0100 | [diff] [blame] | 19 | jcenter() |
Ficus Kirkpatrick | 4e82015 | 2014-02-08 13:31:24 -0800 | [diff] [blame] | 20 | } |
| 21 | dependencies { |
Michal Bendowski | 4a2a7f3 | 2015-06-11 11:18:48 +0100 | [diff] [blame] | 22 | classpath 'com.android.tools.build:gradle:1.3.1' |
Ficus Kirkpatrick | 4e82015 | 2014-02-08 13:31:24 -0800 | [diff] [blame] | 23 | } |
| 24 | } |
| 25 | |
Jeff Davidson | b433afb | 2014-11-23 12:13:39 -0800 | [diff] [blame] | 26 | apply plugin: 'com.android.library' |
Jeff Davidson | 7686937 | 2014-06-09 10:13:43 -0700 | [diff] [blame] | 27 | |
Michal Bendowski | 4a2a7f3 | 2015-06-11 11:18:48 +0100 | [diff] [blame] | 28 | repositories { |
| 29 | jcenter() |
| 30 | } |
| 31 | |
Jeff Davidson | 7686937 | 2014-06-09 10:13:43 -0700 | [diff] [blame] | 32 | android { |
Michal Bendowski | ab60b7c | 2015-06-09 17:34:36 +0100 | [diff] [blame] | 33 | compileSdkVersion 22 |
| 34 | buildToolsVersion = '22.0.1' |
Jeff Davidson | 7686937 | 2014-06-09 10:13:43 -0700 | [diff] [blame] | 35 | } |
| 36 | |
Jeff Davidson | 40d0011 | 2014-12-08 14:16:59 -0800 | [diff] [blame] | 37 | apply from: 'rules.gradle' |