Update Gradle plugin to 0.14 for compatibility with Android Studio 0.9.0
[pub/Android/ownCloud.git] / build.gradle
1 buildscript {
2 repositories {
3 mavenCentral()
4 }
5 dependencies {
6 classpath 'com.android.tools.build:gradle:0.14.0'
7 }
8 }
9
10 apply plugin: 'com.android.application'
11
12
13 repositories {
14 mavenCentral()
15
16 flatDir {
17 dirs 'libs'
18 }
19 }
20
21 artifacts.add("default", file('libs/actionbarsherlock.aar'))
22
23 dependencies {
24 compile name: 'touch-image-view'
25 compile 'com.android.support:support-v4:19.1.0'
26 compile project('libs/actionbarsherlock_lib')
27 compile project(':owncloud-android-library')
28 compile 'com.jakewharton:disklrucache:2.0.2'
29 }
30
31 android {
32 compileSdkVersion 19
33 buildToolsVersion "20.0.0"
34 sourceSets {
35 main {
36 manifest.srcFile 'AndroidManifest.xml'
37 java.srcDirs = ['src']
38 resources.srcDirs = ['src']
39 aidl.srcDirs = ['src']
40 renderscript.srcDirs = ['src']
41 res.srcDirs = ['res']
42 assets.srcDirs = ['res']
43 }
44
45 // Move the tests to tests/java, tests/res, etc...
46 instrumentTest.setRoot('tests')
47
48 // Move the build types to build-types/<type>
49 // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
50 // This moves them out of them default location under src/<type>/... which would
51 // conflict with src/ being used by the main source set.
52 // Adding new build types or product flavors should be accompanied
53 // by a similar customization.
54 debug.setRoot('build-types/debug')
55 release.setRoot('build-types/release')
56 }
57
58 android {
59 lintOptions {
60 abortOnError false
61 }
62 }
63
64
65 compileOptions {
66 sourceCompatibility JavaVersion.VERSION_1_7
67 targetCompatibility JavaVersion.VERSION_1_7
68 }
69
70 productFlavors {
71 }
72
73 packagingOptions {
74 exclude 'META-INF/LICENSE.txt'
75 }
76 }
77
78