From e6adb7abcadec5ea1f274a7dfa2f03a1902213ae Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Tue, 3 Sep 2019 16:27:57 -0400 Subject: [PATCH] Make kotlin version a variable globally --- app/build.gradle | 1 - build.gradle | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index b527173e9..ba661d633 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -104,7 +104,6 @@ dependencies { implementation "com.github.topjohnwu:room-runtime:${vRoom}" kapt "androidx.room:room-compiler:${vRoom}" - def kotlinVer = '1.3.50' implementation "org.jetbrains.kotlin:kotlin-stdlib:${kotlinVer}" implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${kotlinVer}" diff --git a/build.gradle b/build.gradle index f5e7e6101..7d5f95138 100644 --- a/build.gradle +++ b/build.gradle @@ -7,6 +7,7 @@ if (configPath.exists()) configPath.withInputStream { is -> props.load(is) } buildscript { + ext.kotlinVer = '1.3.50' repositories { google() @@ -16,7 +17,7 @@ buildscript { } dependencies { classpath 'com.android.tools.build:gradle:3.5.0' - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50" + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVer}" // NOTE: Do not place your application dependencies here; they belong