Enable Kotlin in project

This commit is contained in:
Daniel Leal 2017-12-13 15:34:06 +01:00
parent 4a79aaedc9
commit 4d0336c13b
2 changed files with 7 additions and 0 deletions

View File

@ -1,10 +1,12 @@
buildscript {
ext.kotlin_version = '1.2.0'
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}

View File

@ -1,4 +1,5 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
android {
@ -18,8 +19,12 @@ dependencies {
compile COMMON_MARK
compile COMMON_MARK_STRIKETHROUGHT
compile COMMON_MARK_TABLE
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}
if (project.hasProperty('release')) {
apply from: 'https://raw.githubusercontent.com/chrisbanes/gradle-mvn-push/master/gradle-mvn-push.gradle'
}
repositories {
mavenCentral()
}