GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Migration of the `serial` library to Gradle by madhav2348 · Pull Request #1106 · processing/processing4

Conversation

@madhav2348

@madhav2348 madhav2348 commented May 16, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Description

Migrated the serial library from Ant-based build.xml to Gradle build.gradle.kts

Resolve Issue

  • Move serial Library to Gradle #1099

Changes

  • Added Gradle build logic using Kotlin DSL
  • Removed ant.importBuild("build.xml")
  • Add settings.gradle.kts

Let me know if further adjustments are needed!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
madhav2348 added 8 commits May 16, 2025 16:37
@madhav2348
Update build.gradle.kts
08aa1e3
@madhav2348
Update build.gradle.kts
f151d13
@madhav2348
fix build.gradle.kts
46cc1d1
@madhav2348
Resolving issue 1099
1f210b8
- Add settings.gradle.kts
- Update build.gradle.kts
@madhav2348
Merge branch 'main' into issue1099
41bea20
@madhav2348
foojay-resolver-convention updated to latest version
53e1008
@madhav2348
Merge branch 'issue1099' of https://github.com/madhav2348/processing4 …
d1b21f5
…into issue1099
@madhav2348
Merge branch 'processing:main' into issue1099
b43c409
@madhav2348 madhav2348 mentioned this pull request May 17, 2025
Move svg Library to Gradle #1098
Closed
@SableRaf
SableRaf requested a review from Stefterv July 16, 2025 15:33
@Stefterv

Stefterv commented Jul 23, 2025

Copy link
Copy Markdown
Member

Hi @madhav2348 I have opened #1189 as an example of how this kind of migration should be approached. Would you be interested in adjusting your approach based on that PR?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@madhav2348

madhav2348 commented Jul 23, 2025

Copy link
Copy Markdown
Contributor Author

Sure , I'll be happy to work on that

Stefterv reacted with heart emoji
All reactions
  • ❤️ 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Stefterv Stefterv changed the title Fix migration of serial library to Gradle Migration of the serial library to Gradle Jul 23, 2025
@madhav2348

madhav2348 commented Jul 24, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

hi @Stefterv , taking your example as reference, I searched jssc in Maven repository for the serial library :

dependencies {
    compileOnly(project(":core"))
    implementation("org.scream3r:jssc:2.8.0")  
}

But it doesn't have the method getPortProperties()used in :

processing4/java/libraries/serial/src/processing/serial/Serial.java

Lines 262 to 265 in 3f36db5

public static Map<String, String> getProperties(String portName) {
return SerialPortList.getPortProperties(portName);
}

Somehow I found this issue processing/processing@f0cc875

now gohai/java-simple-serial-connector is only a repo, but doesn't have any release or .jar file that I could use Jitpack
and also there is no previous release I could find in the original repo

the solution I thought is

  • use the jssc.jar in the library directory

or fork the repo and build/upload the .jar file in release

But I need your advice on this: if I'm doing it right!

Thankyou

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Stefterv

Stefterv commented Jul 24, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Hi @madhav2348 thank you for flagging this and doing some of the initial research!

Looking at the history it seems that the last change reverted it back to a version of https://github.com/java-native/jssc rather than a custom build. Please check if the latest (2.10.2) works or try to find out which version is currently in the repo.

Otherwise just use an implementation() tag pointing at the existing .jar and add a TODO pointing to https://github.com/java-native/jssc and create a new issue here in the repo to request migration of jssc to a supported build on maven.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@madhav2348
update migration code and revert unnecessary commits
24b7c35
@madhav2348

madhav2348 commented Jul 25, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

would creating an issue be the correct step ? because it is customized by a previous contributor and its depending for many years
latest version (2.10.2) and other previous version not working of https://github.com/java-native/jssc , I searched most of releases

processing4/java/libraries/serial/library/jssc.txt

Line 1 in 3f36db5

This is using a modified version of Java Simple Serial Connector by Alexey Sokolov. See https://github.com/gohai/java-simple-serial-connector and https://github.com/sampottinger/jssc for details on the modifications to support Processing.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Stefterv

Stefterv commented Jul 29, 2025

Copy link
Copy Markdown
Member

We should create an issue on this repo to start work on creating a more maintainable solution for this jar, either that will be incorporating the project into the repo or creating a downstream repo on the foundation org with the changes. We can figure that out in the new issue

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@madhav2348 madhav2348 mentioned this pull request Jul 30, 2025
migrate custom jssc dependency to maintainable source used in serial library #1194
Open
@Stefterv Stefterv added this to the 4.4.8 milestone Sep 8, 2025
@Stefterv Stefterv added this to Processing Roadmap Sep 8, 2025
@Stefterv Stefterv moved this to In progress in Processing Roadmap Sep 8, 2025
Stefterv
Stefterv approved these changes Sep 22, 2025
View reviewed changes
catilac
catilac reviewed Oct 6, 2025
View reviewed changes
Comment thread java/libraries/serial/build.gradle.kts Resolved

Uh oh!

There was an error while loading. Please reload this page.

catilac
catilac approved these changes Oct 6, 2025
View reviewed changes

@catilac catilac left a comment

Copy link
Copy Markdown
Collaborator

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.

Thank you @madhav2348 !

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@catilac
catilac merged commit f36e5b2 into processing:main Oct 6, 2025
@github-project-automation github-project-automation Bot moved this from In progress to Completed in Processing Roadmap Oct 6, 2025
@Stefterv Stefterv mentioned this pull request Feb 6, 2026
Publish Serial and IO libraries to Maven Central #1421
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@catilac catilac catilac approved these changes
+1 more reviewer
@Stefterv Stefterv Stefterv approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

Processing Roadmap
Status: Completed

Milestone

4.4.11

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@madhav2348 @Stefterv @catilac
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.
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.