buildscript { ext.kotlin_version = '1.2.30' ext.dokka_version = '0.9.15' repositories { jcenter() google() } dependencies { classpath 'com.android.tools.build:gradle:3.0.1' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath "org.jetbrains.dokka:dokka-android-gradle-plugin:${dokka_version}" } } repositories { jcenter() google() } apply plugin: 'com.android.library' apply plugin: 'kotlin-android' apply plugin: 'org.jetbrains.dokka-android' android { compileSdkVersion 27 buildToolsVersion '27.0.1' defaultConfig { minSdkVersion 14 targetSdkVersion 27 } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } lintOptions { disable 'AllowBackup' } defaultConfig { testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } } dependencies { compile "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version" compile 'com.squareup.okhttp3:okhttp:3.10.0' androidTestCompile 'com.squareup.okhttp3:mockwebserver:3.10.0' androidTestCompile 'com.android.support.test:runner:1.0.1' testCompile "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version" testCompile 'junit:junit:4.12' testCompile 'com.squareup.okhttp3:mockwebserver:3.10.0' }