buildscript { dependencies { classpath "com.android.tools.build:gradle:$abt_plugin_version" classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$test_kotlin_version" } } plugins { id 'org.jetbrains.dokka' } apply plugin: 'com.android.library' apply plugin: 'kotlin-android' android { compileSdkVersion Integer.parseInt(sdk_version) buildToolsVersion abt_version sourceSets { main.java.srcDirs += 'src/main/kotlin' } } dependencies { api(project(":jlib")) dokkaRuntime files(dokka_fatjar) } dokka { configuration { externalDocumentationLink { url = new URL("https://example.com") packageListUrl = file("$rootDir/package-list").toURI().toURL() } } }