blob: f92ccb803ac99f7c33d046b7c6dc9a6d75cb5a87 [file]
val resolvedBootstrap = configurations.resolvable("kotlinScriptRuntimeBootstrapClasspath") {
dependencies.addLater(providers.provider {
project.dependencies.create("org.jetbrains.kotlin:kotlin-script-runtime:${bootstrapKotlinVersion}")
})
}
configurations.consumable("kotlinScriptRuntimeElements") {
attributes {
attribute(Category.CATEGORY_ATTRIBUTE, objects.named(Category.LIBRARY))
attribute(LibraryElements.LIBRARY_ELEMENTS_ATTRIBUTE, objects.named(LibraryElements.JAR))
attribute(Usage.USAGE_ATTRIBUTE, objects.named(Usage.JAVA_RUNTIME))
}
outgoing.artifacts(resolvedBootstrap)
}