build.gradle 945 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. buildscript {
  2. ext.kotlin_version = '1.0.3'
  3. repositories {
  4. mavenCentral()
  5. }
  6. dependencies {
  7. classpath 'com.android.tools.build:gradle:2.1.0'
  8. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  9. }
  10. }
  11. apply plugin: 'com.android.application'
  12. apply plugin: 'kotlin-android'
  13. android {
  14. compileSdkVersion 'android-23'
  15. buildToolsVersion '24.0.1'
  16. defaultConfig {
  17. applicationId 'com.pleasantprogrammer.mpp'
  18. minSdkVersion 15
  19. targetSdkVersion 22
  20. versionCode 1
  21. versionName '0.1'
  22. }
  23. buildTypes {
  24. release {
  25. proguardFile getDefaultProguardFile('proguard-android.txt')
  26. }
  27. }
  28. sourceSets {
  29. main.java.srcDirs += 'src/main/kotlin'
  30. }
  31. }
  32. repositories {
  33. jcenter()
  34. }
  35. dependencies {
  36. compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
  37. compile 'org.jetbrains.anko:anko-sdk15:0.9'
  38. }