Skip to content

Commit 4079f5f

Browse files
committed
apply gradle-maven-publish plugin and add pom properties
1 parent 074ec42 commit 4079f5f

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

gradle.properties

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,30 @@ kotlin.code.style=official
2020
# Enables namespacing of each library's R class so that its R class includes only the
2121
# resources declared in the library itself and none from the library's dependencies,
2222
# thereby reducing the size of the R class for that library
23-
android.nonTransitiveRClass=true
23+
android.nonTransitiveRClass=true
24+
25+
# POM values
26+
GROUP=io.monstarlab
27+
POM_ARTIFACT_ID=mosaic
28+
VERSION_NAME=0.0.1-SNAPSHOT
29+
30+
POM_NAME=Mosaic
31+
POM_DESCRIPTION=A collection of UI components .
32+
POM_INCEPTION_YEAR=2024
33+
POM_URL=https://github.com/monstar-lab-oss/android-mosaic
34+
35+
POM_LICENSE_NAME=The Apache Software License, Version 2.0
36+
POM_LICENSE_URL=https://www.apache.org/licenses/LICENSE-2.0.txt
37+
POM_LICENSE_DIST=repo
38+
39+
POM_SCM_URL=scm:[email protected]:monstar-lab-oss/android-mosaic.git
40+
POM_SCM_CONNECTION=scm:[email protected]:monstar-lab-oss/android-mosaic.git
41+
POM_SCM_DEV_CONNECTION=scm:[email protected]:monstar-lab-oss/android-mosaic.git
42+
43+
POM_DEVELOPER_ID=Monstarlab
44+
POM_DEVELOPER_NAME=Monstarlab
45+
POM_DEVELOPER_EMAIL=[email protected]
46+
POM_DEVELOPER_URL=https://github.com/username/
47+
48+
mavenCentralUsername=username
49+
mavenCentralPassword=the_password

lib/build.gradle.kts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1+
import com.vanniktech.maven.publish.SonatypeHost
2+
13
plugins {
24
alias(libs.plugins.android.library)
35
alias(libs.plugins.mosaic.library)
46
alias(libs.plugins.kotlin.android)
7+
alias(libs.plugins.gradle.maven.publish)
8+
59
}
610

711
android {
@@ -20,6 +24,12 @@ android {
2024
}
2125
}
2226
}
27+
mavenPublishing{
28+
publishToMavenCentral(SonatypeHost.DEFAULT)
29+
signAllPublications()
30+
}
31+
32+
2333
kotlin {
2434
jvmToolchain(17)
2535
}

0 commit comments

Comments
 (0)