File tree Expand file tree Collapse file tree 1 file changed +48
-1
lines changed
Expand file tree Collapse file tree 1 file changed +48
-1
lines changed Original file line number Diff line number Diff line change 1+ import com.vanniktech.maven.publish.SonatypeHost
2+
13plugins{
24 java
5+ alias(libs.plugins.mavenPublish)
36}
47
58sourceSets {
@@ -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+ }
You can’t perform that action at this time.
0 commit comments