For now, publish the sources elements variant with usage=kotlin-sources

This commit is contained in:
Sergey Igushkin
2021-04-01 16:42:23 +03:00
parent a94597d85a
commit fe351f26ef
@@ -174,7 +174,7 @@ open class DocumentationVariantConfigurator {
return project.configurations.create(configurationName).apply {
isCanBeResolved = false
isCanBeConsumed = true
// attributes.attribute(Usage.USAGE_ATTRIBUTE, project.usageByName(KotlinUsages.KOTLIN_SOURCES))
attributes.attribute(Usage.USAGE_ATTRIBUTE, project.usageByName(KotlinUsages.KOTLIN_SOURCES))
attributes.attribute(Category.CATEGORY_ATTRIBUTE, project.objects.named(Category::class.java, Category.DOCUMENTATION))
attributes.attribute(Bundling.BUNDLING_ATTRIBUTE, project.objects.named(Bundling::class.java, Bundling.EXTERNAL))
attributes.attribute(DocsType.DOCS_TYPE_ATTRIBUTE, project.objects.named(DocsType::class.java, DocsType.SOURCES))