File tree Expand file tree Collapse file tree 1 file changed +50
-1
lines changed
Expand file tree Collapse file tree 1 file changed +50
-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 {
@@ -23,15 +26,61 @@ dependencies {
2326tasks.register<Copy >(" createLibrary" ) {
2427 dependsOn(" jar" )
2528 into(layout.buildDirectory.dir(" library" ))
29+
2630 from(layout.projectDirectory) {
2731 include(" library.properties" )
2832 include(" examples/**" )
2933 }
34+
3035 from(configurations.runtimeClasspath) {
3136 into(" library" )
3237 }
38+
3339 from(tasks.jar) {
3440 into(" library" )
3541 rename { " serial.jar" }
3642 }
37- }
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 Serial" )
62+ description.set(" Processing Serial" )
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+ }
You can’t perform that action at this time.
0 commit comments