Add publishing configurator, call it from the variant factories

This commit is contained in:
Sergey Igushkin
2021-03-20 17:32:54 +03:00
parent 1271fabffa
commit c1fe0d7158
6 changed files with 163 additions and 129 deletions
@@ -50,10 +50,14 @@ interface KotlinNativeVariant : KotlinGradleVariant {
override val platformType: KotlinPlatformType
get() = KotlinPlatformType.native
/** A configuration name for the metadata of the host-specific fragments which this variant includes,
* if applies to this Native variant; null otherwise */
val hostSpecificMetadataElementsConfigurationName: String?
var enableEndorsedLibraries: Boolean
}
interface SingleMavenPublicationHolder {
interface SingleMavenPublishedModuleHolder {
fun assignMavenPublication(publication: MavenPublication)
val defaultPublishedModuleSuffix: String?
val publishedMavenModuleCoordinates: PublishedModuleCoordinatesProvider