-
Notifications
You must be signed in to change notification settings - Fork 411
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid configuration resolution error for v2 migration helper task
- Loading branch information
Showing
4 changed files
with
63 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
dokka-runners/dokka-gradle-plugin/src/testFunctional/kotlin/DokkaV1TaskDisabledTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* Copyright 2014-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. | ||
*/ | ||
package org.jetbrains.dokka.gradle | ||
|
||
import io.kotest.core.spec.style.FunSpec | ||
import org.gradle.testkit.runner.TaskOutcome.SKIPPED | ||
import org.jetbrains.dokka.gradle.utils.addArguments | ||
import org.jetbrains.dokka.gradle.utils.build | ||
import org.jetbrains.dokka.gradle.utils.projects.initNoConfigMultiModuleProject | ||
import org.jetbrains.dokka.gradle.utils.shouldHaveRunTask | ||
|
||
class DokkaV1TaskDisabledTest : FunSpec({ | ||
context("given multi-module project") { | ||
|
||
val project = initNoConfigMultiModuleProject { | ||
gradleProperties { | ||
dokka { | ||
pluginMode = "V2EnabledWithHelpers" | ||
} | ||
} | ||
} | ||
|
||
test("v1 tasks should be skipped when v2 is enabled") { | ||
project.runner | ||
.addArguments("dokkaHtml") | ||
.build { | ||
shouldHaveRunTask(":subproject-one:dokkaHtml", SKIPPED) | ||
shouldHaveRunTask(":subproject-two:dokkaHtml", SKIPPED) | ||
} | ||
} | ||
} | ||
}) |