GeezerVison is showing github.com — publish pdf library · processing/processing4@dd75209
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: java/libraries/pdf/build.gradle.kts +48-1Lines changed: 48 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +import com.vanniktech.maven.publish.SonatypeHost |
| 2 | + |
1 | 3 | plugins{ |
2 | 4 | java |
| 5 | + alias(libs.plugins.mavenPublish) |
3 | 6 | } |
4 | 7 |
|
5 | 8 | sourceSets { |
@@ -37,4 +40,48 @@ tasks.register<Copy>("createLibrary"){ |
37 | 40 | into("library") |
38 | 41 | rename { "pdf.jar" } |
39 | 42 | } |
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://[email protected]/processing/processing4.git") |
| 85 | + } |
| 86 | + } |
| 87 | +} |