diff options
-rw-r--r-- | android/java/MapboxGLAndroidSDK/build.gradle | 10 | ||||
-rw-r--r-- | android/java/MapboxGLAndroidSDKTestApp/build.gradle | 15 | ||||
-rw-r--r-- | android/java/build.gradle | 21 |
3 files changed, 24 insertions, 22 deletions
diff --git a/android/java/MapboxGLAndroidSDK/build.gradle b/android/java/MapboxGLAndroidSDK/build.gradle index 00ea988205..4362291468 100644 --- a/android/java/MapboxGLAndroidSDK/build.gradle +++ b/android/java/MapboxGLAndroidSDK/build.gradle @@ -1,13 +1,3 @@ -buildscript { - repositories { - mavenCentral() - } - dependencies { - classpath 'com.android.tools.build:gradle:1.3.0' - classpath 'com.jakewharton.sdkmanager:gradle-plugin:0.12.0' - } -} - apply plugin: 'android-sdk-manager' apply plugin: 'com.android.library' apply plugin: 'checkstyle' diff --git a/android/java/MapboxGLAndroidSDKTestApp/build.gradle b/android/java/MapboxGLAndroidSDKTestApp/build.gradle index a98febe194..d348a9b437 100644 --- a/android/java/MapboxGLAndroidSDKTestApp/build.gradle +++ b/android/java/MapboxGLAndroidSDKTestApp/build.gradle @@ -1,23 +1,18 @@ buildscript { repositories { - mavenCentral() maven { url 'https://maven.fabric.io/public' } } dependencies { - classpath 'com.android.tools.build:gradle:1.3.0' - classpath 'com.jakewharton.sdkmanager:gradle-plugin:0.12.0' classpath 'io.fabric.tools:gradle:1.+' } } - -apply plugin: 'android-sdk-manager' -apply plugin: 'com.android.application' -apply plugin: 'io.fabric' - repositories { maven { url 'https://maven.fabric.io/public' } } +apply plugin: 'android-sdk-manager' +apply plugin: 'com.android.application' +apply plugin: 'io.fabric' apply plugin: 'checkstyle' task accessToken { @@ -41,10 +36,6 @@ android { compileSdkVersion 23 buildToolsVersion "23.0.1" - repositories { - mavenCentral() - } - defaultConfig { applicationId "com.mapbox.mapboxgl.testapp" minSdkVersion 15 diff --git a/android/java/build.gradle b/android/java/build.gradle index 44eacc4422..4093fc84b2 100644 --- a/android/java/build.gradle +++ b/android/java/build.gradle @@ -1,4 +1,25 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. +// Top-level build file where you can add configuration options common to all sub-projects/modules. + +buildscript { + repositories { + jcenter() + } + dependencies { + classpath 'com.android.tools.build:gradle:1.3.0' + classpath 'com.jakewharton.sdkmanager:gradle-plugin:0.12.0' + + // NOTE: Do not place your application dependencies here; they belong + // in the individual module build.gradle files + } +} + +allprojects { + repositories { + jcenter() + } +} + task wrapper(type: Wrapper) { gradleVersion = '2.5' } |