Skip to content

Commit 10b1f01

Browse files
committed
Add POM info to publish to Maven Central
1 parent 81f30f5 commit 10b1f01

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

lib/build.gradle.kts

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,31 @@ val javadocJar by tasks.registering(Jar::class) {
4545

4646
publishing.publications.withType<MavenPublication> {
4747
artifact(javadocJar)
48+
49+
pom {
50+
name.set("Compose for Web Material")
51+
description.set("Some Material components for Compose for Web")
52+
val githubUrl = "https://github.com/huanshankeji/compose-web-material"
53+
url.set(githubUrl)
54+
55+
licenses {
56+
license {
57+
name.set("The Apache License, Version 2.0")
58+
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
59+
}
60+
}
61+
developers {
62+
developer {
63+
id.set("ShreckYe")
64+
name.set("Shreck Ye")
65+
email.set("[email protected]")
66+
}
67+
}
68+
scm {
69+
val scmString = "scm:git:$githubUrl.git"
70+
connection.set(scmString)
71+
developerConnection.set(scmString)
72+
url.set(githubUrl)
73+
}
74+
}
4875
}

0 commit comments

Comments
 (0)