Files
kotlin-fork/idea/testData/configuration/android-gradle/gradleExamples/gradleExample65_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

43 lines
901 B
Groovy
Vendored

buildscript {
ext.kotlin_version = '$VERSION$'
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.5.+'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
apply plugin: 'android-library'
apply plugin: 'kotlin-android'
apply plugin: 'maven'
repositories {
maven { url '../testrepo' }
mavenCentral()
}
dependencies {
compile 'com.example.android.multiproject:util:1.0'
releaseCompile 'com.google.guava:guava:11.0.2'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}
android {
compileSdkVersion 15
buildToolsVersion "17.0"
}
group = 'com.example.android.multiproject'
archivesBaseName = 'baseLib'
version = '1.0'
uploadArchives {
repositories {
mavenDeployer {
repository(url: uri("../testrepo"))
}
}
}