Index: build.gradle |
=================================================================== |
--- a/build.gradle |
+++ b/build.gradle |
@@ -1,20 +1,25 @@ |
buildscript { |
+ // buildscript block is evaluated at the very beginning. Properties defined in the ext block |
+ // don't exist at that time. |
+ ext.kotlinVersion = '1.1.51' |
repositories { |
jcenter() |
} |
dependencies { |
classpath 'com.android.tools.build:gradle:2.3.1' |
+ classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion" |
} |
} |
allprojects { |
repositories { |
jcenter() |
+ mavenCentral() |
} |
} |
ext { |
minSdkVersion = 21 |
targetSdkVersion = 25 |
compileSdkVersion = 25 |
buildToolsVersion = '25.0.3' |