File tree Expand file tree Collapse file tree 1 file changed +92
-1
lines changed
Expand file tree Collapse file tree 1 file changed +92
-1
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+
16+ repositories {
17+ mavenCentral()
18+ }
19+
20+ dependencies {
21+ compileOnly(project(" :core" ))
22+ }
23+
24+ tasks.register<Copy >(" createLibrary" ) {
25+ dependsOn(" jar" )
26+ into(layout.buildDirectory.dir(" library" ))
27+
28+ from(layout.projectDirectory) {
29+ include(" library.properties" )
30+ include(" examples/**" )
31+ }
32+
33+ from(configurations.runtimeClasspath) {
34+ into(" library" )
35+ }
36+
37+ from(tasks.jar) {
38+ into(" library" )
39+ rename { " io.jar" }
40+ }
41+
42+ from(layout.projectDirectory.dir(" library" )) {
43+ include(" linux-arm64/**" )
44+ include(" linux-armv6hf/**" )
45+ include(" linux32/**" )
46+ include(" linux64/**" )
47+ into(" library" )
48+ }
49+ }
50+
51+ publishing {
52+ repositories {
53+ maven {
54+ name = " App"
55+ url = uri(project(" :app" ).layout.buildDirectory.dir(" resources-bundled/common/repository" ).get().asFile.absolutePath)
56+ }
57+ }
58+ }
59+
60+ mavenPublishing {
61+ coordinates(" $group .core" , name, version.toString())
62+ publishToMavenCentral(SonatypeHost .CENTRAL_PORTAL , automaticRelease = true )
63+
64+ signAllPublications()
65+
66+ pom {
67+ name.set(" Processing IO" )
68+ description.set(" Processing IO" )
69+ url.set(" https://processing.org" )
70+ licenses {
71+ license {
72+ name.set(" LGPL" )
73+ url.set(" https://www.gnu.org/licenses/lgpl-2.1.html" )
74+ }
75+ }
76+ developers {
77+ developer {
78+ id.set(" steftervelde" )
79+ name.set(" Stef Tervelde" )
80+ }
81+ developer {
82+ id.set(" benfry" )
83+ name.set(" Ben Fry" )
84+ }
85+ }
86+ scm {
87+ url.set(" https://github.com/processing/processing4" )
88+ connection.set(" scm:git:git://github.com/processing/processing4.git" )
89+ developerConnection.set(" scm:git:ssh://git@github.com/processing/processing4.git" )
90+ }
91+ }
92+ }
You can’t perform that action at this time.
0 commit comments