Skip to content

Commit

Permalink
Update to Gradle 7.2 and Dokka 1.5.31 (#885)
Browse files Browse the repository at this point in the history
Co-authored-by: Simon Vergauwen <[email protected]>
Co-authored-by: Raúl Raja Martínez <[email protected]>
  • Loading branch information
3 people authored Oct 26, 2021
1 parent fadce1d commit 126fe0b
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 8 deletions.
31 changes: 25 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,30 @@ plugins {
configure(subprojects - project("docs")
) {
apply plugin: "org.jetbrains.dokka"
dokka {
outputFormat = 'jekyll'
outputDirectory = PATH_APIDOCS
configuration {
includes = ['README.md']
dokkaGfm {
outputDirectory = file(PATH_APIDOCS)
dokkaSourceSets {
if (file("src/main/kotlin").exists()) {
main {
skipDeprecated.set(true)
reportUndocumented.set(true)
sourceLink {
localDirectory.set(file("src/main/kotlin"))
remoteUrl.set(uri("https://github.com/arrow-kt/arrow-meta/blob/main/${relativeProjectPath('src/main/kotlin')}").toURL())
remoteLineSuffix.set("#L")
}
}
} else if (file("src/commonMain/kotlin").exists()) {
main {
skipDeprecated.set(true)
reportUndocumented.set(true)
sourceLink {
localDirectory.set(file("src/commonMain/kotlin"))
remoteUrl.set(uri("https://github.com/arrow-kt/arrow-meta/blob/main/${relativeProjectPath('src/commonMain/kotlin')}").toURL())
remoteLineSuffix.set("#L")
}
}
}
}
}
}
Expand Down Expand Up @@ -85,7 +104,7 @@ allprojects {

task generateDoc(type: Exec) {
// Reason of commandLine: to avoid specifying the list of modules
commandLine "sh", "gradlew", "dokka"
commandLine "sh", "gradlew", "dokkaGfm"
}

task runValidation(type: Exec) {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ KTLINT_VERSION=0.42.1
KTLINT_GRADLE_VERSION=10.1.0
KOTEST_VERSION=5.0.0.M2
ASSERTJ_VERSION=3.13.2
DOKKA_VERSION=0.10.0
DOKKA_VERSION=1.5.31
CLASS_GRAPH_VERSION=4.8.47
JUNIT_VERSION=5.8.0
KOTLIN_COMPILE_TESTING=1.4.4
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.9.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

0 comments on commit 126fe0b

Please sign in to comment.