x80486
05/09/2020, 2:53 PM6.4.0
, there are a lot of dependencies on different configurations (e.g.: implementation
, kapt
, etc.)...my question: is there a way to just include a BOM without the need to include it in all configurations? This is what I have:
implementation(enforcedPlatform("io.micronaut:micronaut-bom:${project.property("micronaut.version")}"))
kapt(enforcedPlatform("io.micronaut:micronaut-bom:${project.property("micronaut.version")}"))
kaptTest(enforcedPlatform("io.micronaut:micronaut-bom:${project.property("micronaut.version")}"))
testImplementation(enforcedPlatform("io.micronaut:micronaut-bom:${project.property("micronaut.version")}"))
...I would like just to have one of those applied to the entire project, if that's possible.octylFractal
05/09/2020, 4:39 PMconfigurations.all {
add(name, enforcedPlatform("..."))
}
good enough?cristiangm
05/09/2020, 7:03 PMx80486
05/09/2020, 8:46 PMconfigurations {
all { add(enforcedPlatform("io.micronaut:micronaut-bom:${project.property("micronaut.version")}")) }
}
octylFractal
05/09/2020, 8:47 PMname
argumentoctylFractal
05/09/2020, 8:47 PMdependencies {}
block, apologies for not mentioning thatx80486
05/09/2020, 8:53 PMimplementation
it only applies to it, kapt
doesn't know about it...octylFractal
05/09/2020, 8:54 PMname
refers to each configuration's nameoctylFractal
05/09/2020, 8:55 PMdependencies {
configurations.all {
add(name, enforcedPlatform("io.micronaut:micronaut-bom:${project.property("micronaut.version")}"))
}
}
is the full thing that I am recommending, no substitutions requiredx80486
05/09/2020, 8:58 PM> Task :kaptGenerateStubsKotlin FAILED
Could not connect to Kotlin compile daemon
Could not connect to kotlin daemon. Using fallback strategy.
Error: Could not find or load main class org.jetbrains.kotlin.cli.jvm.K2JVMCompiler
Caused by: java.lang.ClassNotFoundException: org.jetbrains.kotlin.cli.jvm.K2JVMCompiler
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':kaptGenerateStubsKotlin'.
octylFractal
05/09/2020, 8:58 PMx80486
05/09/2020, 8:59 PM