Last active
August 1, 2016 15:15
-
-
Save mitchwongho/ebd7122b76821460dca0 to your computer and use it in GitHub Desktop.
Kotlin Android build.gradle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'com.android.application' | |
apply plugin: 'kotlin-android' | |
apply plugin: 'me.tatarka.retrolambda' | |
buildscript { | |
ext.kotlin_version = '1.0.0-beta-4584' | |
ext.android_support_lib_version = '23.1.1' | |
ext.retrolambda_version = '3.2.4' | |
repositories { | |
jcenter() | |
mavenCentral() | |
} | |
dependencies { | |
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" | |
classpath "me.tatarka:gradle-retrolambda:$retrolambda_version" | |
} | |
} | |
android { | |
compileSdkVersion 23 | |
buildToolsVersion "23.0.2" | |
defaultConfig { | |
applicationId "za.co.comotion.reader.android" | |
minSdkVersion 16 | |
targetSdkVersion 23 | |
versionCode 1 | |
versionName "1.0" | |
} | |
buildTypes { | |
release { | |
minifyEnabled false | |
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | |
} | |
} | |
sourceSets { | |
main.java.srcDirs += 'src/main/kotlin' | |
} | |
compileOptions { | |
sourceCompatibility JavaVersion.VERSION_1_8 | |
targetCompatibility JavaVersion.VERSION_1_8 | |
} | |
} | |
dependencies { | |
compile fileTree(dir: 'libs', include: ['*.jar']) | |
testCompile 'junit:junit:4.12' | |
compile "com.android.support:appcompat-v7:$android_support_lib_version" | |
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" | |
} | |
retrolambda { | |
javaVersion JavaVersion.VERSION_1_7 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment