Skip to content

Commit dd75209

Browse files
committed
publish pdf library
1 parent 11f1a1e commit dd75209

File tree

1 file changed

+48
-1
lines changed

1 file changed

+48
-1
lines changed

java/libraries/pdf/build.gradle.kts

Lines changed: 48 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,48 @@ 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+
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL, automaticRelease = true)
56+
57+
// Only sign if signing is set up
58+
if(project.hasProperty("signing.keyId") || project.hasProperty("signingInMemoryKey"))
59+
signAllPublications()
60+
61+
pom{
62+
name.set("Processing PDF Library")
63+
description.set("Processing PDF Library")
64+
url.set("https://processing.org")
65+
licenses {
66+
license {
67+
name.set("LGPL")
68+
url.set("https://www.gnu.org/licenses/lgpl-2.1.html")
69+
}
70+
}
71+
developers {
72+
developer {
73+
id.set("steftervelde")
74+
name.set("Stef Tervelde")
75+
}
76+
developer {
77+
id.set("benfry")
78+
name.set("Ben Fry")
79+
}
80+
}
81+
scm{
82+
url.set("https://github.com/processing/processing4")
83+
connection.set("scm:git:git://github.com/processing/processing4.git")
84+
developerConnection.set("scm:git:ssh://git@github.com/processing/processing4.git")
85+
}
86+
}
87+
}

0 commit comments

Comments
 (0)