Skip to content

Commit dd64e36

Browse files
author
zhangzhengtian02
committed
fix upload mavencentral script
1 parent 5228ff0 commit dd64e36

File tree

3 files changed

+21
-6
lines changed

3 files changed

+21
-6
lines changed

build.gradle

-6
This file was deleted.

build.gradle.kts

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import com.vanniktech.maven.publish.MavenPublishBaseExtension
2+
import com.vanniktech.maven.publish.SonatypeHost
3+
4+
plugins {
5+
alias(libs.plugins.maven.publish)
6+
alias(libs.plugins.kotlin.multiplatform) apply(false)
7+
alias(libs.plugins.kotlin.jvm) apply(false)
8+
alias(libs.plugins.ksp) apply(false)
9+
}
10+
11+
subprojects {
12+
pluginManager.withPlugin("com.vanniktech.maven.publish") {
13+
configure<MavenPublishBaseExtension> {
14+
publishToMavenCentral(host=SonatypeHost.S01, automaticRelease = true)
15+
signAllPublications()
16+
}
17+
}
18+
}

gradle.properties

+3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ POM_LICENCE_URL=https\://www.apache.org/licenses/LICENSE-2.0.txt
1313
POM_LICENCE_DIST=repo
1414
POM_DEVELOPER_ID=androidZzT
1515
POM_DEVELOPER_NAME=androidZzT
16+
SONATYPE_CONNECT_TIMEOUT_SECONDS = 300
17+
#SONATYPE_HOST=S01
18+
#RELEASE_SIGNING_ENABLED=true
1619

1720
org.gradle.configureondemand=false
1821

0 commit comments

Comments
 (0)