-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Fix lsp4j modules #13835
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
Fix lsp4j modules #13835
Changes from all commits
b6451f1
9bee24f
c0d0a7c
2c4d427
5277005
6c62f33
88b729b
1145a64
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -293,52 +293,38 @@ extraJavaModuleInfo { | |
| module("com.github.javaparser:javaparser-symbol-solver-core", "com.github.javaparser.symbolsolver.core") | ||
| module("net.sf.jopt-simple:jopt-simple", "jopt.simple") | ||
|
|
||
| // "com.github.eclipse:org.eclipse.lsp4j", "lsp4j" | ||
| // - The name 'org.eclipse.lsp4j' is different than the name derived from the Jar file name 'lsp4j'; turn off 'failOnModifiedDerivedModuleNames' or explicitly allow override via 'overrideModuleName()' | ||
| // - Not a module and no mapping defined: lsp4j-0.24.0.jar | ||
| module("com.github.eclipse.lsp4j:org.eclipse.lsp4j", "lsp4j") { | ||
| overrideModuleName() | ||
| module("org.eclipse.lsp4j:org.eclipse.lsp4j", "org.eclipse.lsp4j") { | ||
| exportAllPackages() | ||
| requireAllDefinedDependencies() | ||
| // Note the missing "lsp4j" at the group | ||
| mergeJar("com.github.eclipse:lsp4j") | ||
| requires("com.google.gson") | ||
|
|
||
| } | ||
| module("com.github.eclipse.lsp4j:org.eclipse.lsp4j.debug", "lsp4j.debug") { | ||
| overrideModuleName() | ||
| module("org.eclipse.lsp4j:org.eclipse.lsp4j.debug", "org.eclipse.lsp4j.debug") { | ||
| exportAllPackages() | ||
| } | ||
| module("com.github.eclipse.lsp4j:org.eclipse.lsp4j.generator", "lsp4j.generator") { | ||
| overrideModuleName() | ||
| module("org.eclipse.lsp4j:org.eclipse.lsp4j.generator", "org.eclipse.lsp4j.generator") { | ||
| exportAllPackages() | ||
| } | ||
| module("com.github.eclipse.lsp4j:org.eclipse.lsp4j.jsonrpc", "lsp4j.jsonrpc") { | ||
| overrideModuleName() | ||
| module("org.eclipse.lsp4j:org.eclipse.lsp4j.jsonrpc", "org.eclipse.lsp4j.jsonrpc") { | ||
| exportAllPackages() | ||
| requires("com.google.gson") | ||
| requires("java.logging") | ||
| } | ||
| module("com.github.eclipse.lsp4j:org.eclipse.lsp4j.jsonrpc.debug", "lsp4j.jsonrpc.debug") { | ||
| overrideModuleName() | ||
| module("org.eclipse.lsp4j:org.eclipse.lsp4j.jsonrpc.debug", "org.eclipse.lsp4j.jsonrpc.debug") { | ||
| exportAllPackages() | ||
| } | ||
| module("com.github.eclipse.lsp4j:org.eclipse.lsp4j.websocket", "lsp4j.websocket") { | ||
| overrideModuleName() | ||
| module("org.eclipse.lsp4j:org.eclipse.lsp4j.websocket", "org.eclipse.lsp4j.websocket") { | ||
| exportAllPackages() | ||
| requireAllDefinedDependencies() | ||
| } | ||
| module("com.github.eclipse.lsp4j:org.eclipse.lsp4j.websocket.jakarta", "lsp4j.websocket.jakarta") { | ||
| overrideModuleName() | ||
| module("org.eclipse.lsp4j:org.eclipse.lsp4j.websocket.jakarta", "org.eclipse.lsp4j.websocket.jakarta") { | ||
| exportAllPackages() | ||
| requireAllDefinedDependencies() | ||
| } | ||
| module("jakarta.websocket:jakarta.websocket-api", "jakarta.websocket") { | ||
| overrideModuleName() | ||
| exportAllPackages() | ||
| } | ||
| module("javax.websocket:javax.websocket-api", "javax.websocket") { | ||
| overrideModuleName() | ||
| module("javax.websocket:javax.websocket-api", "javax.websocket.api") { | ||
| exportAllPackages() | ||
| } | ||
| module("org.eclipse.xtend:org.eclipse.xtend", "xtend") { | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It looks like some module names still don't match. Shouldn't this be
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Okay, I will check this one out as well
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is a relocation note (to group org.eclipse.xtext) for this artifact since version 2.40.0: https://repo1.maven.org/maven2/org/eclipse/xtend/org.eclipse.xtend.relocated.parent/2.40.0/org.eclipse.xtend.relocated.parent-2.40.0.pom The first version under the new location has been released recently, so I suppose it's most future-proof to follow this move from the start...
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For the record, this did not cause any problem for the recent doc build. However, my system does not consider xtend a dependency of any JabRef module at all. Consequently, it's not listed on https://apidia.net/java/JabRef/6.0-snapshot-2025-09-12/
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, indeed, maybe it was required in the past as transitive dependency for some tooling |
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,15 +1,15 @@ | ||
| module org.jabref.jabls { | ||
| exports org.jabref.languageserver; | ||
| opens org.jabref.languageserver to lsp4j, lsp4j.jsonrpc, com.google.gson; | ||
| opens org.jabref.languageserver to org.eclipse.lsp4j, org.eclipse.lsp4j.jsonrpc, com.google.gson; | ||
| exports org.jabref.languageserver.controller; | ||
| exports org.jabref.languageserver.util; | ||
|
|
||
| requires org.jabref.jablib; | ||
|
|
||
| requires org.slf4j; | ||
|
|
||
| requires lsp4j; | ||
| requires lsp4j.jsonrpc; | ||
| requires lsp4j.websocket; | ||
| requires org.eclipse.lsp4j; | ||
| requires org.eclipse.lsp4j.jsonrpc; | ||
| requires org.eclipse.lsp4j.websocket; | ||
| requires com.google.gson; | ||
| } |
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.
Should this adjustment be applied to
module("jakarta.websocket:jakarta.websocket-api", "jakarta.websocket")as well?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.
I will test this out 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.
Oh, sorry my mistake. It's alright. Jakarta does explicitly declare the module name
For javax.websocket, it's a different story since its automatic module name is indeed
javax.websocket.api. Sorry for the wrong alert!