Skip to content

Instantly share code, notes, and snippets.

@pepyakin
Created August 16, 2014 08:39
Show Gist options
  • Save pepyakin/092d6eda3603cdfb7262 to your computer and use it in GitHub Desktop.
Save pepyakin/092d6eda3603cdfb7262 to your computer and use it in GitHub Desktop.
build.gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.11.+'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:0.8.11'
}
}
allprojects {
repositories {
mavenCentral()
}
}
apply plugin: 'android'
apply plugin: 'kotlin-android'
android {
compileSdkVersion 'android-L'
buildToolsVersion "20.0.0"
defaultConfig {
applicationId "me.pepyakin.kotlinapp"
minSdkVersion 'L'
targetSdkVersion 'L'
versionCode 1
versionName "1.0"
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'org.jetbrains.kotlin:kotlin-stdlib:0.8.11'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment