Skip to content

Commit 870d116

Browse files
authored
Publish org.processing.core.dxf to Maven Central (Publish libraries to maven central) (#1403)
* publish dxf library * different naming * Naming * Remove unused itext dependency from dxf module
1 parent 8b049ef commit 870d116

File tree

2 files changed

+36
-2
lines changed

2 files changed

+36
-2
lines changed

build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ plugins {
33

44
alias(libs.plugins.compose.compiler) apply false
55
alias(libs.plugins.jetbrainsCompose) apply false
6+
alias(libs.plugins.mavenPublish) apply false
67

78
alias(libs.plugins.versions)
89
}

java/libraries/dxf/build.gradle.kts

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
plugins{
22
id("org.processing.library")
3+
alias(libs.plugins.mavenPublish)
34
}
45

56
processing {
@@ -27,10 +28,42 @@ sourceSets {
2728
}
2829
}
2930
}
30-
dependencies{
31-
implementation("com.lowagie:itext:2.1.7")
31+
32+
33+
mavenPublishing {
34+
publishToMavenCentral(com.vanniktech.maven.publish.SonatypeHost.CENTRAL_PORTAL, automaticRelease = true)
35+
signAllPublications()
36+
coordinates("$group.core", name, version.toString())
37+
38+
pom {
39+
name.set("Processing DXF")
40+
description.set("Processing DFX")
41+
url.set("https://processing.org")
42+
licenses {
43+
license {
44+
name.set("LGPL")
45+
url.set("https://www.gnu.org/licenses/lgpl-2.1.html")
46+
}
47+
}
48+
developers {
49+
developer {
50+
id.set("steftervelde")
51+
name.set("Stef Tervelde")
52+
}
53+
developer {
54+
id.set("benfry")
55+
name.set("Ben Fry")
56+
}
57+
}
58+
scm {
59+
url.set("https://github.com/processing/processing4")
60+
connection.set("scm:git:git://github.com/processing/processing4.git")
61+
developerConnection.set("scm:git:ssh://git@github.com/processing/processing4.git")
62+
}
63+
}
3264
}
3365

66+
3467
/**
3568
* @deprecated Legacy task, use 'bundleLibrary' task provided by 'org.processing.library' plugin
3669
*/

0 commit comments

Comments
 (0)