Skip to content

Commit ca3999a

Browse files
Chaitanya-970Chaitanya-970
andauthored
Configure Maven publishing for app/utils (#1572)
Co-authored-by: Chaitanya-970 <chaitanyabh97@example.com>
1 parent cc23933 commit ca3999a

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

‎app/utils/build.gradle.kts‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import com.vanniktech.maven.publish.SonatypeHost
12
plugins {
23
id("java")
34
alias(libs.plugins.mavenPublish)
@@ -21,6 +22,39 @@ publishing{
2122
}
2223
}
2324
}
25+
mavenPublishing {
26+
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL, automaticRelease = true)
27+
28+
if (project.hasProperty("signing.keyId") || project.hasProperty("signingInMemoryKey"))
29+
signAllPublications()
30+
31+
pom {
32+
name.set("Processing Utilities")
33+
description.set("Processing Utilities")
34+
url.set("https://processing.org")
35+
licenses {
36+
license {
37+
name.set("LGPL")
38+
url.set("https://www.gnu.org/licenses/lgpl-2.1.html")
39+
}
40+
}
41+
developers {
42+
developer {
43+
id.set("steftervelde")
44+
name.set("Stef Tervelde")
45+
}
46+
developer {
47+
id.set("benfry")
48+
name.set("Ben Fry")
49+
}
50+
}
51+
scm {
52+
url.set("https://github.com/processing/processing4")
53+
connection.set("scm:git:git://github.com/processing/processing4.git")
54+
developerConnection.set("scm:git:ssh://git@github.com/processing/processing4.git")
55+
}
56+
}
57+
}
2458

2559
tasks.test {
2660
useJUnitPlatform()

0 commit comments

Comments
 (0)