Publish pdf library: add coordinates and simplify signing (#1407)

This commit is contained in:
Avinash Kumar Deepak
2026-02-06 05:46:25 +05:30
committed by GitHub
parent 81e1d562a8
commit 8b049efab6
+47 -1
View File
@@ -1,5 +1,8 @@
import com.vanniktech.maven.publish.SonatypeHost
plugins{
java
alias(libs.plugins.mavenPublish)
}
sourceSets {
@@ -37,4 +40,47 @@ tasks.register<Copy>("createLibrary"){
into("library")
rename { "pdf.jar" }
}
}
}
publishing{
repositories{
maven {
name = "App"
url = uri(project(":app").layout.buildDirectory.dir("resources-bundled/common/repository").get().asFile.absolutePath)
}
}
}
mavenPublishing{
coordinates("$group.core", name, version.toString())
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL, automaticRelease = true)
signAllPublications()
pom{
name.set("Processing PDF")
description.set("Processing PDF")
url.set("https://processing.org")
licenses {
license {
name.set("LGPL")
url.set("https://www.gnu.org/licenses/lgpl-2.1.html")
}
}
developers {
developer {
id.set("steftervelde")
name.set("Stef Tervelde")
}
developer {
id.set("benfry")
name.set("Ben Fry")
}
}
scm{
url.set("https://github.com/processing/processing4")
connection.set("scm:git:git://github.com/processing/processing4.git")
developerConnection.set("scm:git:ssh://git@github.com/processing/processing4.git")
}
}
}