1buildscript { 2 repositories { 3 jcenter() 4 mavenLocal() 5 } 6 dependencies { 7 classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$test_kotlin_version" 8 } 9} 10 11plugins { 12 id 'org.jetbrains.dokka-android' 13} 14 15 16apply plugin: 'com.android.application' 17apply plugin: 'kotlin-android' 18apply plugin: 'org.jetbrains.dokka-android' 19 20android { 21 compileSdkVersion Integer.parseInt(sdk_version) 22 buildToolsVersion abt_version 23 24 defaultConfig { 25 applicationId "org.example.kotlin.mixed" 26 minSdkVersion 14 27 targetSdkVersion Integer.parseInt(sdk_version) 28 versionCode 1 29 versionName "1.0" 30 } 31 buildTypes { 32 release { 33 minifyEnabled false 34 proguardFiles getDefaultProguardFile('proguard-android.txt') 35 } 36 } 37 sourceSets { 38 main.java.srcDirs += 'src/main/kotlin' 39 } 40} 41 42dependencies { 43 compile "org.jetbrains.kotlin:kotlin-stdlib:$test_kotlin_version" 44} 45 46 47dokka { 48 outputFormat = "javadoc" 49 dokkaFatJar = new File(dokka_fatjar) 50}