"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libraries/tools/kotlin-gradle-plugin/src/main/kotlin/org/jetbrains/kotlin/gradle/plugin/mpp/KotlinMultiplatformPlugin.kt" between
kotlin-1.3.20.tar.gz and kotlin-1.3.21.tar.gz

About: Kotlin is a Java like statically typed programming language for the JVM, Android and the browser. Source code.

KotlinMultiplatformPlugin.kt  (kotlin-1.3.20):KotlinMultiplatformPlugin.kt  (kotlin-1.3.21)
skipping to change at line 171 skipping to change at line 171
val targets = project.multiplatformExtension!!.targets val targets = project.multiplatformExtension!!.targets
val kotlinSoftwareComponent = project.multiplatformExtension!!.rootSoftw areComponent val kotlinSoftwareComponent = project.multiplatformExtension!!.rootSoftw areComponent
project.extensions.configure(PublishingExtension::class.java) { publishi ng -> project.extensions.configure(PublishingExtension::class.java) { publishi ng ->
// The root publication that references the platform specific public ations as its variants: // The root publication that references the platform specific public ations as its variants:
val rootPublication = publishing.publications.create("kotlinMultipla tform", MavenPublication::class.java).apply { val rootPublication = publishing.publications.create("kotlinMultipla tform", MavenPublication::class.java).apply {
from(kotlinSoftwareComponent) from(kotlinSoftwareComponent)
(this as MavenPublicationInternal).publishWithOriginalFileName() (this as MavenPublicationInternal).publishWithOriginalFileName()
kotlinSoftwareComponent.publicationDelegate = this@apply
} }
// Publish the root publication only if Gradle metadata publishing i s enabled: // Publish the root publication only if Gradle metadata publishing i s enabled:
project.tasks.withType(AbstractPublishToMaven::class.java).all { pub lishTask -> project.tasks.withType(AbstractPublishToMaven::class.java).all { pub lishTask ->
publishTask.onlyIf { publishTask.publication != rootPublication || project.multiplatformExtension!!.isGradleMetadataAvailable } publishTask.onlyIf { publishTask.publication != rootPublication || project.multiplatformExtension!!.isGradleMetadataAvailable }
} }
// Enforce the order of creating the publications, since the metadat a publication is used in the other publications: // Enforce the order of creating the publications, since the metadat a publication is used in the other publications:
(targets.getByName(METADATA_TARGET_NAME) as AbstractKotlinTarget).cr eateMavenPublications(publishing.publications) (targets.getByName(METADATA_TARGET_NAME) as AbstractKotlinTarget).cr eateMavenPublications(publishing.publications)
targets targets
 End of changes. 1 change blocks. 
0 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)