Build: Fix variant resolution ambiguity

This commit is contained in:
Vyacheslav Gerasimov
2020-05-07 14:27:06 +03:00
parent eeb2f7d3d1
commit b4df4e5525
12 changed files with 52 additions and 32 deletions

View File

@@ -10,6 +10,10 @@ val testCompile by configurations
testCompile.extendsFrom(allTestsRuntime)
val embeddableTestRuntime by configurations.creating {
extendsFrom(allTestsRuntime)
attributes {
attribute(Usage.USAGE_ATTRIBUTE, objects.named(Usage.JAVA_RUNTIME))
attribute(Category.CATEGORY_ATTRIBUTE, objects.named(Category.LIBRARY))
}
}
dependencies {