Build: Use attributes to resolve test dependencies in jps build mode
This commit is contained in:
@@ -10,7 +10,13 @@ plugins {
|
||||
jvmTarget = "1.6"
|
||||
javaHome = rootProject.extra["JDK_16"] as String
|
||||
|
||||
val builtins by configurations.creating
|
||||
val builtins by configurations.creating {
|
||||
isCanBeResolved = true
|
||||
isCanBeConsumed = false
|
||||
attributes {
|
||||
attribute(LibraryElements.LIBRARY_ELEMENTS_ATTRIBUTE, objects.named(LibraryElements.JAR))
|
||||
}
|
||||
}
|
||||
|
||||
val runtime by configurations
|
||||
val runtimeJar by configurations.creating {
|
||||
|
||||
@@ -41,7 +41,11 @@ sourceSets {
|
||||
configurations {
|
||||
commonSources
|
||||
longRunningTestCompile.extendsFrom(testCompile)
|
||||
builtins
|
||||
builtins {
|
||||
attributes {
|
||||
attribute(LibraryElements.LIBRARY_ELEMENTS_ATTRIBUTE, objects.named(LibraryElements, LibraryElements.JAR))
|
||||
}
|
||||
}
|
||||
compileOnly.extendsFrom(builtins)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user