Skip to content

Commit

Permalink
Update dokka to 1.4.0-rc
Browse files Browse the repository at this point in the history
  • Loading branch information
evant committed Aug 5, 2020
1 parent 2b2c4c4 commit b38254a
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 35 deletions.
1 change: 0 additions & 1 deletion assertk-coroutines/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ plugins {
id 'org.jetbrains.kotlin.multiplatform'
id 'org.jetbrains.dokka'
id 'io.gitlab.arturbosch.detekt'
id 'org.ajoberstar.git-publish'
}

apply from: "$rootProject.projectDir/multiplatform.gradle"
Expand Down
2 changes: 1 addition & 1 deletion assertk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,4 @@ gitPublish {
}
}

gitPublishCopy.dependsOn(dokka)
gitPublishCopy.dependsOn(dokkaHtml)
71 changes: 38 additions & 33 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import org.jetbrains.dokka.gradle.DokkaTask

plugins {
id 'org.jetbrains.kotlin.multiplatform' version '1.3.70' apply false
id 'org.jetbrains.dokka' version '0.10.0' apply false
id 'org.jetbrains.dokka' version '1.4.0-rc' apply false
id 'io.gitlab.arturbosch.detekt' version '1.5.0' apply false
id 'org.ajoberstar.git-publish' version '2.1.1' apply false
}
Expand Down Expand Up @@ -58,59 +58,60 @@ configure(subprojects.findAll({ it.name.startsWith('assertk') })) {

tasks.detekt.dependsOn(detektMain, detektTest)

dokka {
outputFormat = 'html'
dokkaHtml {
outputDirectory = "$buildDir/javadoc/"
multiplatform {
common {}
js {}
jvm {}
linux {}
iosArm64 {}
iosX64 {}
macos {}
dokkaSourceSets {
commonMain {}
jsMain {}
jvmMain {
jdkVersion = 8
}
linuxMain {}
iosArm64Main {}
iosX64Main {}
macosMain {}

configureEach {
sourceLink {
path = "src"
url = "https://github.com/willowtreeapps/assertk/tree/v${version}/${project.name}/src"
lineSuffix = "#L"
}
}
}
}

task dokkaCommon(type: DokkaTask) {
impliedPlatforms = ["Common"]
outputFormat = 'html'
outputDirectory = "$buildDir/javadoc/common"
multiplatform {
common {}
dokkaSourceSets {
commonMain {}
}
}

task dokkaJs(type: DokkaTask) {
impliedPlatforms = ["JS", "Common"]
outputFormat = 'html'
outputDirectory = "$buildDir/javadoc/js"
multiplatform {
common {}
js {}
dokkaSourceSets {
commonMain {}
jsMain {}
}
}

task dokkaJvm(type: DokkaTask) {
impliedPlatforms = ["JVM", "Common"]
outputFormat = 'html'
outputDirectory = "$buildDir/javadoc/jvm"
multiplatform {
common {}
jvm {}
dokkaSourceSets {
commonMain {}
jvmMain {}
}
}

task dokkaNative(type: DokkaTask) {
impliedPlatforms = ["Native", "Common"]
outputFormat = 'html'
outputDirectory = "$buildDir/javadoc/native"
multiplatform {
common {}
linux {}
iosArm64 {}
iosX64 {}
macos {}
dokkaSourceSets {
commonMain {}
linuxMain {}
iosArm64Main {}
iosX64Main {}
macosMain {}
}
}

Expand All @@ -134,6 +135,10 @@ configure(subprojects.findAll({ it.name.startsWith('assertk') })) {
from "$buildDir/javadoc/native"
}

task emptyJavadocJar(type: Jar) {
archiveClassifier.set('javadoc')
}

task emptySourcesJar(type: Jar) {
archiveClassifier.set('sources')
}
Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.gradle.jvmargs=-Xmx2048m

0 comments on commit b38254a

Please sign in to comment.