buildscript { ext.kotlin_version = '1.2.40' ext.dokka_version = '0.9.16' repositories { jcenter() } dependencies { classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath "org.jetbrains.dokka:dokka-gradle-plugin:$dokka_version" } } subprojects { apply plugin: 'java' apply plugin: 'kotlin' apply plugin: 'org.jetbrains.dokka' repositories { mavenCentral() } dependencies { compile "org.jetbrains.kotlin:kotlin-stdlib-jre7:1.2.40" } }