Skip to content

Commit b779880

Browse files
committed
Forces SonatypeHost.CENTRAL_PORTAL in KmpComposeUIViewControllerPublishPlugin
1 parent 0ee9d4b commit b779880

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

build-logic/conventions/src/main/kotlin/KmpComposeUIViewControllerPublishPlugin.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import com.vanniktech.maven.publish.MavenPublishBaseExtension
2+
import com.vanniktech.maven.publish.SonatypeHost
23
import org.gradle.api.Plugin
34
import org.gradle.api.Project
45

@@ -38,7 +39,7 @@ class KmpComposeUIViewControllerPublishPlugin : Plugin<Project> {
3839

3940
project.plugins.apply("com.vanniktech.maven.publish")
4041
project.extensions.getByType(MavenPublishBaseExtension::class.java).apply {
41-
publishToMavenCentral(automaticRelease = false)
42+
publishToMavenCentral(host = SonatypeHost.CENTRAL_PORTAL, automaticRelease = false)
4243
signAllPublications()
4344
pom {
4445
name.set(LIB_NAME)

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Gradle
22
org.gradle.jvmargs=-Xmx4096M -Dfile.encoding=UTF-8 -Dkotlin.daemon.jvm.options\="-Xmx4096M"
3-
org.gradle.configuration-cache=true
3+
org.gradle.configuration-cache=false
44

55
#Kotlin
66
kotlin.code.style=official

0 commit comments

Comments
 (0)