-
-
Notifications
You must be signed in to change notification settings - Fork 162
Publish Serial and IO libraries to Maven Central #1421
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 3 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
83aa3b5
serial: use jssc from maven instead of bundled jar
avinxshKD dcf7adb
io: port from ant to gradle, add maven publishing
avinxshKD d4830ec
move io and net from legacy to regular library build
avinxshKD 26e258b
revert serial changes for separate pr
avinxshKD be35e09
serial: add maven publishing, keep bundled jssc jar
avinxshKD File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,92 @@ | ||
| ant.importBuild("build.xml") | ||
| import com.vanniktech.maven.publish.SonatypeHost | ||
|
|
||
| plugins { | ||
| java | ||
| alias(libs.plugins.mavenPublish) | ||
| } | ||
|
|
||
| sourceSets { | ||
| main { | ||
| java { | ||
| srcDirs("src") | ||
| } | ||
| } | ||
| } | ||
|
|
||
| repositories { | ||
| mavenCentral() | ||
| } | ||
|
|
||
| dependencies { | ||
| compileOnly(project(":core")) | ||
| } | ||
|
|
||
| tasks.register<Copy>("createLibrary") { | ||
| dependsOn("jar") | ||
| into(layout.buildDirectory.dir("library")) | ||
|
|
||
| from(layout.projectDirectory) { | ||
| include("library.properties") | ||
| include("examples/**") | ||
| } | ||
|
|
||
| from(configurations.runtimeClasspath) { | ||
| into("library") | ||
| } | ||
|
|
||
| from(tasks.jar) { | ||
| into("library") | ||
| rename { "io.jar" } | ||
| } | ||
|
|
||
| from(layout.projectDirectory.dir("library")) { | ||
| include("linux-arm64/**") | ||
| include("linux-armv6hf/**") | ||
| include("linux32/**") | ||
| include("linux64/**") | ||
| into("library") | ||
| } | ||
| } | ||
|
|
||
| publishing { | ||
| repositories { | ||
| maven { | ||
| name = "App" | ||
| url = uri(project(":app").layout.buildDirectory.dir("resources-bundled/common/repository").get().asFile.absolutePath) | ||
| } | ||
| } | ||
| } | ||
|
|
||
| mavenPublishing { | ||
| coordinates("$group.core", name, version.toString()) | ||
| publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL, automaticRelease = true) | ||
|
|
||
| signAllPublications() | ||
|
|
||
| pom { | ||
| name.set("Processing IO") | ||
| description.set("Processing IO") | ||
| url.set("https://processing.org") | ||
| licenses { | ||
| license { | ||
| name.set("LGPL") | ||
| url.set("https://www.gnu.org/licenses/lgpl-2.1.html") | ||
| } | ||
| } | ||
| developers { | ||
| developer { | ||
| id.set("steftervelde") | ||
| name.set("Stef Tervelde") | ||
| } | ||
| developer { | ||
| id.set("benfry") | ||
| name.set("Ben Fry") | ||
| } | ||
| } | ||
| scm { | ||
| url.set("https://github.com/processing/processing4") | ||
| connection.set("scm:git:git://github.com/processing/processing4.git") | ||
| developerConnection.set("scm:git:ssh://git@github.com/processing/processing4.git") | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#1106 please see here why this was this way