From 5b6ef7e44857ef0c6e200cf25025669db81ae083 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sat, 18 Nov 2017 23:50:53 +0100 Subject: [PATCH] update gradle files to the Android Studio 3 way --- app/build.gradle | 23 +++++------------------ build.gradle | 7 ++++++- 2 files changed, 11 insertions(+), 19 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 7b5f6b72..67cb8974 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -46,26 +46,13 @@ ext { } dependencies { - compile 'com.simplemobiletools:commons:2.39.10' - compile 'com.bignerdranch.android:recyclerview-multiselect:0.2' - compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" + implementation 'com.simplemobiletools:commons:2.39.10' + implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" - compile files('../libs/RootTools.jar') + implementation files('../libs/RootTools.jar') - debugCompile "com.squareup.leakcanary:leakcanary-android:$leakCanaryVersion" - releaseCompile "com.squareup.leakcanary:leakcanary-android-no-op:$leakCanaryVersion" -} - -buildscript { - ext.kotlin_version = '1.1.60' - repositories { - mavenCentral() - } - - dependencies { - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - classpath "org.jetbrains.kotlin:kotlin-android-extensions:$kotlin_version" - } + debugImplementation "com.squareup.leakcanary:leakcanary-android:$leakCanaryVersion" + releaseImplementation "com.squareup.leakcanary:leakcanary-android-no-op:$leakCanaryVersion" } def Properties props = new Properties() diff --git a/build.gradle b/build.gradle index 8c22f111..a87e8adc 100644 --- a/build.gradle +++ b/build.gradle @@ -1,11 +1,16 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { + ext.kotlin_version = '1.1.60' + repositories { jcenter() + google() } + dependencies { classpath 'com.android.tools.build:gradle:3.0.0' + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files @@ -15,8 +20,8 @@ buildscript { allprojects { repositories { jcenter() + google() maven { url "https://jitpack.io" } - maven { url "https://maven.google.com" } } }