blob: 6f2acca4b5fcce368fcfc5c8f41d15ce06bc9777 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
/*
* Copyright 2014-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
plugins {
id("dokkabuild.test-integration")
id("dokkabuild.setup-maven-cli")
}
dependencies {
implementation(projects.utilities)
implementation(kotlin("test-junit5"))
implementation(libs.junit.jupiterApi)
}
val dokkaSubprojects = gradle.includedBuild("dokka")
val mavenPlugin = gradle.includedBuild("runner-maven-plugin")
tasks.integrationTest {
dependsOn(
dokkaSubprojects.task(":publishToMavenLocal"),
mavenPlugin.task(":publishToMavenLocal"),
)
dependsOn(tasks.installMavenBinary)
val mvn = mavenCliSetup.mvn
inputs.file(mvn)
doFirst("workaround for https://github.com/gradle/gradle/issues/24267") {
environment("DOKKA_VERSION", project.version)
environment("MVN_BINARY_PATH", mvn.get().asFile.invariantSeparatorsPath)
}
}
|