File tree Expand file tree Collapse file tree 2 files changed +167
-2
lines changed
Expand file tree Collapse file tree 2 files changed +167
-2
lines changed Original file line number Diff line number Diff line change 1- ant.importBuild(" build.xml" )
1+ import com.vanniktech.maven.publish.SonatypeHost
2+
3+ plugins{
4+ java
5+ alias(libs.plugins.mavenPublish)
6+ }
7+
8+ sourceSets {
9+ main {
10+ java {
11+ srcDirs(" src" )
12+ }
13+ }
14+ }
15+ repositories{
16+ mavenCentral()
17+ }
18+
19+ dependencies{
20+ compileOnly(project(" :core" ))
21+ }
22+
23+ tasks.register<Copy >(" createLibrary" ){
24+ dependsOn(" jar" )
25+ into(layout.buildDirectory.dir(" library" ))
26+
27+ from(layout.projectDirectory){
28+ include (" library.properties" )
29+ include(" examples/**" )
30+ }
31+
32+ from(configurations.runtimeClasspath){
33+ into(" library" )
34+ }
35+
36+ from(tasks.jar) {
37+ into(" library" )
38+ rename { " net.jar" }
39+ }
40+ }
41+
42+ publishing{
43+ repositories{
44+ maven {
45+ name = " App"
46+ url = uri(project(" :app" ).layout.buildDirectory.dir(" resources-bundled/common/repository" ).get().asFile.absolutePath)
47+ }
48+ }
49+ }
50+
51+ mavenPublishing{
52+ coordinates(" $group .core" , name, version.toString())
53+ publishToMavenCentral(SonatypeHost .CENTRAL_PORTAL , automaticRelease = true )
54+
55+ signAllPublications()
56+
57+ pom{
58+ name.set(" Processing Network" )
59+ description.set(" Processing Network Library" )
60+ url.set(" https://processing.org" )
61+ licenses {
62+ license {
63+ name.set(" LGPL" )
64+ url.set(" https://www.gnu.org/licenses/lgpl-2.1.html" )
65+ }
66+ }
67+ developers {
68+ developer {
69+ id.set(" steftervelde" )
70+ name.set(" Stef Tervelde" )
71+ }
72+ developer {
73+ id.set(" benfry" )
74+ name.set(" Ben Fry" )
75+ }
76+ }
77+ scm{
78+ url.set(" https://github.com/processing/processing4" )
79+ connection.set(" scm:git:git://github.com/processing/processing4.git" )
80+ developerConnection.set(" scm:git:ssh://git@github.com/processing/processing4.git" )
81+ }
82+ }
83+ }
Original file line number Diff line number Diff line change 1- ant.importBuild(" build.xml" )
1+ import com.vanniktech.maven.publish.SonatypeHost
2+
3+ plugins{
4+ java
5+ alias(libs.plugins.mavenPublish)
6+ }
7+
8+ sourceSets {
9+ main {
10+ java {
11+ srcDirs(" src" )
12+ }
13+ }
14+ }
15+ repositories{
16+ mavenCentral()
17+ }
18+
19+ dependencies{
20+ compileOnly(project(" :core" ))
21+
22+ implementation(" org.apache.xmlgraphics:batik-all:1.19" )
23+ }
24+
25+ tasks.register<Copy >(" createLibrary" ){
26+ dependsOn(" jar" )
27+ into(layout.buildDirectory.dir(" library" ))
28+
29+ from(layout.projectDirectory){
30+ include (" library.properties" )
31+ }
32+
33+ from(configurations.runtimeClasspath){
34+ into(" library" )
35+ }
36+
37+ from(tasks.jar) {
38+ into(" library" )
39+ rename { " svg.jar" }
40+ }
41+ }
42+
43+ publishing{
44+ repositories{
45+ maven {
46+ name = " App"
47+ url = uri(project(" :app" ).layout.buildDirectory.dir(" resources-bundled/common/repository" ).get().asFile.absolutePath)
48+ }
49+ }
50+ }
51+
52+ mavenPublishing{
53+ coordinates(" $group .core" , name, version.toString())
54+ publishToMavenCentral(SonatypeHost .CENTRAL_PORTAL , automaticRelease = true )
55+
56+ signAllPublications()
57+
58+ pom{
59+ name.set(" Processing SVG Export" )
60+ description.set(" Processing SVG Export Library" )
61+ url.set(" https://processing.org" )
62+ licenses {
63+ license {
64+ name.set(" LGPL" )
65+ url.set(" https://www.gnu.org/licenses/lgpl-2.1.html" )
66+ }
67+ }
68+ developers {
69+ developer {
70+ id.set(" steftervelde" )
71+ name.set(" Stef Tervelde" )
72+ }
73+ developer {
74+ id.set(" benfry" )
75+ name.set(" Ben Fry" )
76+ }
77+ }
78+ scm{
79+ url.set(" https://github.com/processing/processing4" )
80+ connection.set(" scm:git:git://github.com/processing/processing4.git" )
81+ developerConnection.set(" scm:git:ssh://git@github.com/processing/processing4.git" )
82+ }
83+ }
84+ }
You can’t perform that action at this time.
0 commit comments