frank
05/30/2020, 2:30 AMResolving dependency configuration 'implementation' is not allowed as it is defined as 'canBeResolved=false'.
Instead, a resolvable ('canBeResolved=true') dependency configuration that extends 'implementation' should be resolved.
I tried with 'compileClasspath' and 'runtimeClasspath' but dont work. Do i need to create my own implementation or use another?
My Code:
tasks.build{
doLast {
configurations["implementation"].forEach {
copy{
includeEmptyDirs = false
from(zipTree(it.absolutePath))
into("$resources/lib/kotlin")
include { fileTreeElement ->
val path = fileTreeElement.path
path.endsWith(".js") && (path.startsWith("META-INF/resources/") || !path.startsWith("META-INF/"))
}
}
} }
}
frank
05/30/2020, 3:36 PMval implConfig by configurations.creating {
extendsFrom(configurations["implementation"])
}