Files
kotlin-fork/idea/testData/configuration/android-gradle/missedRepositoriesInBuildscriptBlock_after.gradle
T
Juan Chen 7aa195b017 Use "implementation" in build scripts when configuring Kotlin (KT-22571)
Currently "compile" is used when adding kotlin dependencies to build
scripts, which is deprecated.
2018-11-29 16:23:23 +03:00

36 lines
827 B
Groovy
Vendored

buildscript {
ext.kotlin_version = '$VERSION$'
dependencies {
classpath 'com.android.tools.build:gradle:0.5.+'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
repositories {
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
mavenCentral()
}
}
apply plugin: 'android'
apply plugin: 'kotlin-android'
repositories {
mavenCentral()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
}
android {
compileSdkVersion 17
buildToolsVersion "17.0.0"
defaultConfig {
minSdkVersion 7
targetSdkVersion 16
}
}
dependencies {
compile 'com.android.support:support-v4:13.0.0'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}
// VERSION: $VERSION$