Skip to content

Instantly share code, notes, and snippets.

@mitchwongho
Last active August 1, 2016 15:15
Show Gist options
  • Save mitchwongho/ebd7122b76821460dca0 to your computer and use it in GitHub Desktop.
Save mitchwongho/ebd7122b76821460dca0 to your computer and use it in GitHub Desktop.
Kotlin Android build.gradle
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