-
Notifications
You must be signed in to change notification settings - Fork 54
Couple improvements #64
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
Conversation
…with-dependencies (execution environment may have a different api version, which will result in conflicts)
@dmitry-cherkas thanks, I'm not a Maven expert and Ben has disassociated with the project. We need to bundle slf4j in our uber jar, will this affect that? |
@tresf , yes, this will exclude slf4j from uber jar. My situation is the opposite, I had issues incorporating your uber jar into my IntelliJ plugin(https://plugins.jetbrains.com/plugin/8031-serial-port-monitor). NP, if that doesn't meet your use case - feel free to ignore this PR. |
What if we make a build target that doesn't include it? |
This response is two parts: 1. slf4j. 2. code fixes slf4jIf we disclude slf4j from distribution, users grabbing the jar-with-dependencies will receive the following error trying to use the library:
Note, currently, Since we intend to distribute a working standalone library we have a few options:
I really don't love any of the above options, but pragmatically speaking, code fixesIn addition to the mvn changes, there are some code changes around detecting serial ports. These changes shouldn't be ignored if the mvn changes aren't accepted and probably warrant their own discussion. At a glance, it appears the POSIX port matching is being loosened, and I'd like to have some documented justification for those changes. Would it make sense to offer these in a separate PR? For example, the port matching does this for macOS: - PORTNAMES_REGEXP = Pattern.compile("tty.(serial|usbserial|usbmodem).*");
+ PORTNAMES_REGEXP = Pattern.compile("(tty|cu)\\..*"); ... and then later does this for Linux: + if (fileName.startsWith("ttyS")) {
...
+ } Can we get a PR with these changes explained so that they aren't potentially lost with the mvn stuff? |
I found the port change explanation, I've appended it to the PR description.
Using a hypervisor I tested adding a "physical" port to macOS and can confirm that |
Superceded by #97. We'll be merging this soon, thanks! |
*patch for Arduino by Cristian Maglie (arduino/Arduino@f91670e)