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 1
1
apply plugin : ' kotlin'
2
2
apply from : ' ./publishing.gradle'
3
+ apply plugin : ' org.jetbrains.dokka'
3
4
4
5
buildscript {
5
6
ext. kotlin_version = ' 1.0.4'
6
7
7
8
repositories {
8
9
mavenCentral()
10
+ jcenter()
9
11
}
10
12
11
13
dependencies {
12
14
classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
15
+ classpath " org.jetbrains.dokka:dokka-gradle-plugin:0.9.9"
13
16
}
14
17
}
15
18
@@ -48,3 +51,15 @@ dependencies {
48
51
testCompile " junit:junit:4.12"
49
52
testCompile " com.nhaarman:expect.kt:0.6.0"
50
53
}
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
9
9
10
10
task javadocJar (type : Jar , dependsOn : javadoc) {
11
11
classifier = ' javadoc'
12
- from ' build/docs/ javadoc'
12
+ from ' build/javadoc'
13
13
}
14
14
15
15
task sourcesJar (type : Jar ) {
You can’t perform that action at this time.
0 commit comments