File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed
Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 11apply plugin : ' kotlin'
22apply from : ' ./publishing.gradle'
3+ apply plugin : ' org.jetbrains.dokka'
34
45buildscript {
56 ext. kotlin_version = ' 1.0.4'
67
78 repositories {
89 mavenCentral()
10+ jcenter()
911 }
1012
1113 dependencies {
1214 classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
15+ classpath " org.jetbrains.dokka:dokka-gradle-plugin:0.9.9"
1316 }
1417}
1518
@@ -48,3 +51,15 @@ dependencies {
4851 testCompile " junit:junit:4.12"
4952 testCompile " com.nhaarman:expect.kt:0.6.0"
5053}
54+
55+ dokka {
56+ outputFormat = ' html'
57+ outputDirectory = " $buildDir /javadoc"
58+
59+ linkMapping {
60+ dir = " src/main/kotlin"
61+ url = " https://github.com/nhaarman/mockito-kotlin/tree/master/mockito-kotlin/src/main/kotlin"
62+ suffix = " #L"
63+ }
64+ }
65+ javadoc. dependsOn dokka
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ def sonatypePassword = hasProperty('sonatype_password') ? sonatype_password : Sy
99
1010task javadocJar (type : Jar , dependsOn : javadoc) {
1111 classifier = ' javadoc'
12- from ' build/docs/ javadoc'
12+ from ' build/javadoc'
1313}
1414
1515task sourcesJar (type : Jar ) {
You can’t perform that action at this time.
0 commit comments