[Gradle] Remove defaultConfiguration from ExternalKotlinTargetImpl
^KT-55201 Verification Pending
This commit is contained in:
committed by
Space Team
parent
67a511544c
commit
b96e5a2a93
-1
@@ -27,7 +27,6 @@ internal class ExternalKotlinTargetImpl internal constructor(
|
||||
override val targetName: String,
|
||||
override val platformType: KotlinPlatformType,
|
||||
override val publishable: Boolean,
|
||||
val defaultConfiguration: Configuration,
|
||||
val apiElementsConfiguration: Configuration,
|
||||
val runtimeElementsConfiguration: Configuration,
|
||||
val sourcesElementsConfiguration: Configuration,
|
||||
|
||||
-2
@@ -34,7 +34,6 @@ import org.jetbrains.kotlin.gradle.utils.named
|
||||
fun <T : DecoratedExternalKotlinTarget> KotlinMultiplatformExtension.createExternalKotlinTarget(
|
||||
descriptor: ExternalKotlinTargetDescriptor<T>
|
||||
): T {
|
||||
val defaultConfiguration = project.configurations.maybeCreate(lowerCamelCaseName(descriptor.targetName, "default"))
|
||||
val apiElementsConfiguration = project.configurations.maybeCreate(lowerCamelCaseName(descriptor.targetName, "apiElements"))
|
||||
val runtimeElementsConfiguration = project.configurations.maybeCreate(lowerCamelCaseName(descriptor.targetName, "runtimeElements"))
|
||||
val sourcesElementsConfiguration = project.configurations.maybeCreate(lowerCamelCaseName(descriptor.targetName, "sourcesElements"))
|
||||
@@ -58,7 +57,6 @@ fun <T : DecoratedExternalKotlinTarget> KotlinMultiplatformExtension.createExter
|
||||
targetName = descriptor.targetName,
|
||||
platformType = descriptor.platformType,
|
||||
publishable = true,
|
||||
defaultConfiguration = defaultConfiguration,
|
||||
apiElementsConfiguration = apiElementsConfiguration,
|
||||
runtimeElementsConfiguration = runtimeElementsConfiguration,
|
||||
sourcesElementsConfiguration = sourcesElementsConfiguration,
|
||||
|
||||
-3
@@ -33,9 +33,6 @@ abstract class KotlinWithJavaTarget<KotlinOptionsType : KotlinCommonOptions, CO
|
||||
override var disambiguationClassifier: String? = null
|
||||
internal set
|
||||
|
||||
val defaultConfigurationName: String
|
||||
get() = Dependency.DEFAULT_CONFIGURATION
|
||||
|
||||
override val apiElementsConfigurationName: String
|
||||
get() = JavaPlugin.API_ELEMENTS_CONFIGURATION_NAME
|
||||
|
||||
|
||||
Reference in New Issue
Block a user