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 { buildscript {
ext.kotlin_version = '1.2.0'
repositories { repositories {
jcenter() jcenter()
google() google()
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:3.0.1' 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: 'com.android.library'
apply plugin: 'kotlin-android'
android { android {
@ -18,8 +19,12 @@ dependencies {
compile COMMON_MARK compile COMMON_MARK
compile COMMON_MARK_STRIKETHROUGHT compile COMMON_MARK_STRIKETHROUGHT
compile COMMON_MARK_TABLE compile COMMON_MARK_TABLE
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
} }
if (project.hasProperty('release')) { if (project.hasProperty('release')) {
apply from: 'https://raw.githubusercontent.com/chrisbanes/gradle-mvn-push/master/gradle-mvn-push.gradle' apply from: 'https://raw.githubusercontent.com/chrisbanes/gradle-mvn-push/master/gradle-mvn-push.gradle'
} }
repositories {
mavenCentral()
}