Skip to content

Commit

Permalink
Remove dokka from build script (cashapp#2179)
Browse files Browse the repository at this point in the history
To try and unblock releases.
  • Loading branch information
r3mariano authored Oct 19, 2021
1 parent 4ce2306 commit 7c89619
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/prepare_mkdocs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
set -ex

# Generate the API docs
./gradlew dokkaGfm
#./gradlew dokkaGfm

# Dokka filenames like `-http-url/index.md` don't work well with MkDocs <title> tags.
# Assign metadata to the file's first Markdown heading.
Expand Down
18 changes: 0 additions & 18 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
import org.jetbrains.dokka.gradle.DokkaTask
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

buildscript {
Expand All @@ -12,7 +11,6 @@ buildscript {
dependencies {
classpath(Dependencies.kotlinAllOpenPlugin)
classpath(Dependencies.kotlinGradlePlugin)
classpath(Dependencies.dokkaGradlePlugin)
classpath(Dependencies.kotlinNoArgPlugin)
classpath(Dependencies.junitGradlePlugin)
classpath(Dependencies.mavenPublishGradlePlugin)
Expand All @@ -38,7 +36,6 @@ val testShardHibernate by tasks.creating() {
subprojects {
apply(plugin = "java")
apply(plugin = "kotlin")
apply(plugin = "org.jetbrains.dokka")

buildscript {
repositories {
Expand Down Expand Up @@ -83,21 +80,6 @@ subprojects {
add("api", enforcedPlatform(Dependencies.nettyBom))
}

// We have to set the dokka configuration after evaluation since the com.vanniktech.maven.publish
// plugin overwrites our dokka configuration on projects where it's applied.
afterEvaluate {
tasks.withType(DokkaTask::class).configureEach {
dokkaSourceSets.configureEach {
reportUndocumented.set(false)
skipDeprecated.set(true)
jdkVersion.set(8)
if (name == "dokkaGfm") {
outputDirectory.set(project.file("$rootDir/docs/0.x"))
}
}
}
}

tasks.withType<Test> {
useJUnitPlatform()
testLogging {
Expand Down

0 comments on commit 7c89619

Please sign in to comment.