Skip to content

Commit 236ee65

Browse files
committed
Publish pdf library: add coordinates and simplify signing
1 parent 451b399 commit 236ee65

File tree

1 file changed

+47
-1
lines changed

1 file changed

+47
-1
lines changed

java/libraries/pdf/build.gradle.kts

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
import com.vanniktech.maven.publish.SonatypeHost
2+
13
plugins{
24
java
5+
alias(libs.plugins.mavenPublish)
36
}
47

58
sourceSets {
@@ -37,4 +40,47 @@ tasks.register<Copy>("createLibrary"){
3740
into("library")
3841
rename { "pdf.jar" }
3942
}
40-
}
43+
}
44+
45+
publishing{
46+
repositories{
47+
maven {
48+
name = "App"
49+
url = uri(project(":app").layout.buildDirectory.dir("resources-bundled/common/repository").get().asFile.absolutePath)
50+
}
51+
}
52+
}
53+
54+
mavenPublishing{
55+
coordinates("$group.core", name, version.toString())
56+
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL, automaticRelease = true)
57+
58+
signAllPublications()
59+
60+
pom{
61+
name.set("Processing PDF")
62+
description.set("Processing PDF")
63+
url.set("https://processing.org")
64+
licenses {
65+
license {
66+
name.set("LGPL")
67+
url.set("https://www.gnu.org/licenses/lgpl-2.1.html")
68+
}
69+
}
70+
developers {
71+
developer {
72+
id.set("steftervelde")
73+
name.set("Stef Tervelde")
74+
}
75+
developer {
76+
id.set("benfry")
77+
name.set("Ben Fry")
78+
}
79+
}
80+
scm{
81+
url.set("https://github.com/processing/processing4")
82+
connection.set("scm:git:git://github.com/processing/processing4.git")
83+
developerConnection.set("scm:git:ssh://git@github.com/processing/processing4.git")
84+
}
85+
}
86+
}

0 commit comments

Comments
 (0)