Skip to content

Commit b69f096

Browse files
committed
feat:Import maven publish plugin for publishing package
1 parent a6c0bff commit b69f096

File tree

5 files changed

+16
-8
lines changed

5 files changed

+16
-8
lines changed

build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ plugins {
55
id("com.android.application").apply(false)
66
id("com.android.library").apply(false)
77
id("org.jetbrains.compose").apply(false)
8+
id("com.vanniktech.maven.publish") version "0.25.3" apply false
89
}

gradle.properties

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,15 @@ agp.version=8.0.2
2424
compose.version=1.5.1
2525

2626

27-
GROUP_ID=io.github.kevinnzou
28-
ARTIFACT_ID=compose-progressIndicator-multiplatform
27+
GROUP=io.github.kevinnzou
28+
POM_ARTIFACT_ID=compose-progressIndicator-multiplatform
2929
VERSION_NAME=1.2.0
3030

31-
31+
POM_NAME=Compose Progress Indicator Multiplatform
32+
POM_INCEPTION_YEAR=2023
3233
POM_DESCRIPTION=Custom Progress Indicator for JetBrains Compose Multiplatform
33-
3434
POM_URL=https://github.com/KevinnZou/compose-progressIndicator-multiplatform
35+
3536
POM_SCM_URL=https://github.com/KevinnZou/compose-progressIndicator-multiplatform
3637
POM_SCM_CONNECTION=scm:git:git://github.com/KevinnZou/compose-progressIndicator-multiplatform.git
3738
POM_SCM_DEV_CONNECTION=scm:git:ssh://git@github.com/KevinnZou/compose-progressIndicator-multiplatform.git

progressIndicator/build.gradle.kts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ plugins {
44
kotlin("multiplatform")
55
id("com.android.library")
66
id("org.jetbrains.compose")
7-
// id("convention.publication")
7+
id("com.vanniktech.maven.publish")
88
}
99

1010
kotlin {
@@ -77,3 +77,10 @@ android {
7777
jvmToolchain(17)
7878
}
7979
}
80+
81+
mavenPublishing {
82+
// publishToMavenCentral(SonatypeHost.DEFAULT)
83+
// or when publishing to https://s01.oss.sonatype.org
84+
publishToMavenCentral(com.vanniktech.maven.publish.SonatypeHost.S01, automaticRelease = true)
85+
signAllPublications()
86+
}

sample/shared/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ kotlin {
1111
android {
1212
compilations.all {
1313
kotlinOptions {
14-
jvmTarget = "1.8"
14+
jvmTarget = "17"
1515
}
1616
}
1717
}

settings.gradle.kts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ rootProject.name = "compose-progressIndicator-multiplatform"
33
include(":sample:androidApp")
44
include(":progressIndicator")
55
include(":sample:desktopApp")
6-
//includeBuild("convention-plugins")
6+
include(":sample:shared")
77

88
pluginManagement {
99
repositories {
@@ -40,4 +40,3 @@ dependencyResolutionManagement {
4040
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
4141
}
4242
}
43-
include(":sample:shared")

0 commit comments

Comments
 (0)