Files
kotlin-fork/idea/testData/configuration/android-gradle/missedRepositoriesInBuildscriptBlock_after.gradle
T
Vyacheslav Gerasimov ffa9478d0c Configure Kotlin: add mavenCentral() to repositories
Since kotlin stdlib depends on artifacts from mavenCentral() we should add it
 #KT-18719 Fixed
2017-11-01 23:57:20 +03:00

40 lines
850 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 'http://oss.sonatype.org/content/repositories/snapshots'
}
mavenCentral()
}
}
apply plugin: 'android'
apply plugin: 'kotlin-android'
repositories {
mavenCentral()
maven {
url 'http://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'
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}
// VERSION: $VERSION$