Skip to content

Conversation

@Siedlerchr
Copy link
Member

Closes https://github.com/JabRef/jabref-issue-melting-pot/issues/1083

Steps to test

Mandatory checks

@Siedlerchr
Copy link
Member Author

stack overflow error in jbang wtf?

* main:
  change command imports
  Chore(deps): Bump org.openrewrite.rewrite from 7.19.0 to 7.20.0 (#14266)
  Chore(deps): Bump org.openrewrite.recipe:rewrite-recipe-bom from 3.17.0 to 3.18.0 (#14265)
  Chore(deps): Bump com.google.errorprone:error_prone_core in /versions (#14269)
  Chore(deps): Bump io.github.thibaultmeyer:cuid in /versions (#14268)
  Chore(deps): Bump org.gradlex:java-module-testing in /build-logic (#14267)
  Chore(deps): Bump jablib/src/main/resources/csl-styles (#14264)
  Chore(deps): Bump appleboy/ssh-action from 1.2.2 to 1.2.3 (#14262)
  Fix: Ctrl+Shift+L now opens terminal in the active library directory (#14256)

# Conflicts:
#	jabsrv/src/main/java/module-info.java
#	jabsrv/src/main/java/org/jabref/http/server/command/CommandResource.java
@Siedlerchr
Copy link
Member Author

definitely something with the dep:
at dev.jbang.dependencies.DependencyUtil.looksLikeAPossibleGav(DependencyUtil.java:158)
at dev.jbang.source.parser.Directives.isGav(Directives.java:82)
at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:196)

@koppor
Copy link
Member

koppor commented Nov 9, 2025

I filed jbangdev/jbang#2281

* main:
  Fix calling JBang command (#14282)
  .jbang scripts should not be included inside themselves (#14278)
  Fix typos (#14277)
  Refactor importDatabase for better readability (#14274)
  fix jbang (#14276)
  Feat: Add definition links for TeX Files (#14260)
  Update preventing module commits (#14273)
  Fix JabKitLuancher
  Rename packages in jabkit to start with org.jabref.toolkit to avoid split packages between jabkit and jabgui (#14052). (#14271)
  Add doi-to-bibtex to examples and JabKit (#14244)
@Siedlerchr
Copy link
Member Author

needs testing with LSP

Siedlerchr and others added 7 commits November 13, 2025 21:20
* upstream/main: (30 commits)
  Chore(deps): Bump io.github.classgraph:classgraph from 4.8.181 to 4.8.184 in /versions (#14304)
  Chore(deps): Bump com.fasterxml:aalto-xml in /versions (#14311)
  Chore(deps): Bump commons-io:commons-io in /versions (#14310)
  Chore(deps): Bump org.apache.maven.plugins:maven-surefire-plugin (#14298)
  Disable fetcher-gui-test (#14308)
  Chore(deps): Bump com.dlsc.gemsfx:gemsfx in /versions (#14307)
  No labels for dependeabot updates
  Fix fallback window height from 786 to 768 (#14295)
  Chore(deps): Bump com.fasterxml.jackson.dataformat:jackson-dataformat-yaml (#14306)
  Chore(deps): Bump org.apache.maven.plugins:maven-compiler-plugin (#14302)
  Chore(deps): Bump org.apache.maven.plugins:maven-deploy-plugin (#14300)
  Chore(deps): Bump org.apache.maven.plugins:maven-clean-plugin (#14299)
  Chore(deps): Bump jablib/src/main/resources/csl-styles (#14296)
  Chore(deps): Bump com.vanniktech.maven.publish in /jablib (#14303)
  Chore(deps): Bump org.apache.maven.plugins:maven-project-info-reports-plugin (#14297)
  Update all dependencies (#14301)
  Prepare maven3 example project (#14294)
  Refactor StringUtilTest to use parameterized tests (#14126)
  Try to fix download of pr_number
  Fix workflow names
  ...
@koppor
Copy link
Member

koppor commented Nov 14, 2025

Now, JBang outputs

 CSLStyleLoader.java:16: error: package tools.jackson.core.type does not exist
import tools.jackson.core.type.TypeReference;

This is OK, because jablib on maven central is not updated with the new jackson dependencies

@koppor
Copy link
Member

koppor commented Nov 14, 2025

JabKitLauncher has a strange error when it is executed... - I am not sure what this is, but I would wait for a merge in main and see what happens...

 Error: Exception in thread "main" java.lang.NoClassDefFoundError: textFormatter/color/Color
	at org.jabref.toolkit.JabKit.initLogging(JabKit.java:157)
	at org.jabref.toolkit.JabKit.main(JabKit.java:63)
	at JabKitLauncher.main(JabKitLauncher.java:41)
Caused by: java.lang.ClassNotFoundException: textFormatter.color.Color
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:580)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:490)
``´

Comment on lines 33 to 36
//DEPS com.fasterxml.jackson.core:jackson-annotations:2.20
//DEPS tools.jackson.core:jackson-core:3.0.2
//DEPS tools.jackson.core:jackson-databind:3.0.2
//DEPS tools.jackson.dataformat:jackson-dataformat-yaml:3.0.2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe, this can be left out, because it will come in using the jablib SNAPSHOT from maven central.

api("org.junit.jupiter:junit-jupiter")
api("org.junit.platform:junit-platform-launcher")

api(platform("tools.jackson:jackson-bom:3.0.2"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The version has to go to below to the constraints (doesn't it?)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have absolutely no idea, because it's a bom and other boms are declared at the top as well

@Siedlerchr Siedlerchr enabled auto-merge November 15, 2025 16:09
@Siedlerchr Siedlerchr added the status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Nov 15, 2025
* upstream/main:
  Add smoke tests (#14338)
  Clean up packages in JabKit (#14335)
  Output binaries workflow decisions to summary (#14333)
  New translations jabref_en.properties (Portuguese, Brazilian) (#14332)
  Check for disk space only once (#14331)
  Chore(deps): Bump org.glassfish.jersey.core:jersey-server from 3.1.11 to 4.0.0 in /versions (#14305)
Copy link
Member

@koppor koppor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's try it out :)

@Siedlerchr Siedlerchr added this pull request to the merge queue Nov 17, 2025
@koppor koppor changed the title WIP convert to jackson 3 Convert to jackson 3 Nov 17, 2025
Merged via the queue into main with commit 29bdb09 Nov 17, 2025
60 of 62 checks passed
@Siedlerchr Siedlerchr deleted the jackson3 branch November 17, 2025 20:53
merlinymy pushed a commit to merlinymy/jabref that referenced this pull request Nov 19, 2025
* convert to jackson 3

* checkstyle

* checkstyle

* fix jbang and checkstlye

* fix typo

* fix jbang

* fix jbang

* fix jbang

* fix jbang

* fix artifat id

* add jackson annotations

* fix imports

* fix imports

* Add debug

* fix imports

* add jackson deps to jbang

* fix import

* fix imports

* reveRT CSL CHANGE

* fix imports

* add to example

* cahnge mscocde utils

* fix lsp import

* ad jackson annotaitons

* ad jackson annotaitons

* Try to fix ..

* Fix variable

---------

Co-authored-by: Oliver Kopp <[email protected]>
@koppor
Copy link
Member

koppor commented Nov 25, 2025

@koppor koppor mentioned this pull request Nov 25, 2025
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants