build: Fix dependency scopes in Kotlin module
This commit is contained in:
parent
c737258dd7
commit
aa10c910c0
1 changed files with 18 additions and 10 deletions
|
|
@ -6,21 +6,29 @@ plugins {
|
||||||
id("org.jlleitschuh.gradle.ktlint") version "10.0.0"
|
id("org.jlleitschuh.gradle.ktlint") version "10.0.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
configurations.all {
|
val compileAndTest: Configuration by configurations.creating
|
||||||
dependencies.removeIf { it.group == "org.jetbrains.kotlin" }
|
|
||||||
|
configurations {
|
||||||
|
all {
|
||||||
|
dependencies.removeIf { it.group == "org.jetbrains.kotlin" }
|
||||||
|
}
|
||||||
|
|
||||||
|
compileOnly {
|
||||||
|
extendsFrom(compileAndTest)
|
||||||
|
}
|
||||||
|
testImplementation {
|
||||||
|
extendsFrom(compileAndTest)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
api(project(":cloud-core"))
|
api(project(":cloud-core"))
|
||||||
implementation(kotlin("stdlib-jdk8"))
|
|
||||||
|
|
||||||
implementation(project(":cloud-annotations"))
|
compileAndTest(project(":cloud-annotations"))
|
||||||
implementation(kotlin("reflect"))
|
compileAndTest(kotlin("stdlib-jdk8"))
|
||||||
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2")
|
compileAndTest(kotlin("reflect"))
|
||||||
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:1.5.2")
|
compileAndTest("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2")
|
||||||
|
compileAndTest("org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:1.5.2")
|
||||||
testImplementation("org.jetbrains.kotlin", "kotlin-test-junit5")
|
|
||||||
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:1.5.2")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue