Skip to content

Commit

Permalink
maven integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
whyoleg committed Oct 23, 2023
1 parent 0dad2cd commit 48fb9a6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
10 changes: 8 additions & 2 deletions dokka-integration-tests/maven/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,19 @@ dependencies {
implementation(kotlin("test-junit5"))
}

val dokkaSubprojects = gradle.includedBuild("dokka-subprojects")
val mavenPlugin = gradle.includedBuild("maven-plugin")

tasks.integrationTest {
dependsOn(
dokkaSubprojects.task(":publishToMavenLocal"),
mavenPlugin.task(":publishToMavenLocal"),
)
dependsOn(tasks.installMavenBinary)
val mvn = mavenCliSetup.mvn
inputs.file(mvn)

val dokka_version: String by project
environment("DOKKA_VERSION", dokka_version)
environment("DOKKA_VERSION", project.version)
doFirst("workaround for https://github.com/gradle/gradle/issues/24267") {
environment("MVN_BINARY_PATH", mvn.get().asFile.invariantSeparatorsPath)
}
Expand Down
3 changes: 2 additions & 1 deletion dokka-integration-tests/settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,12 @@ enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")

includeBuild("../dokka-runners/gradle-plugin-classic")
includeBuild("../dokka-runners/cli")
includeBuild("../dokka-runners/maven-plugin")
includeBuild("../dokka-subprojects")

include(
// ":cli",
":gradle",
// ":maven",
":maven",
":integration-test-utilities",
)

0 comments on commit 48fb9a6

Please sign in to comment.