Skip to content

Conversation

@koppor
Copy link
Member

@koppor koppor commented Jul 2, 2025

Central Snapshots is down now and then. Therefore, trying jitpack.

Also a follow-up to #13319 to have the build clean:

  • remove jar files available on maven central
  • Use official IC4J for JabKit (until we get our PR in)

Also follow-up to #13185 fixing JabSrvLauncher cc @palukku

Consequences:

  • Good, because jitpack is more reliable these days than maven central regarding snapshots
  • Bad, because jitpack does not instantly build, but has some delays and skips versions

Steps to test

 jbang --fresh .jbang/JabKitLauncher.java

Mandatory checks

  • I own the copyright of the code submitted and I license it under the MIT license
  • [/] Change in CHANGELOG.md described in a way that is understandable for the average user (if change is visible to the user)
  • [/] Tests created for changes (if applicable)
  • Manually tested changed features in running JabRef (always required)
  • [/] Screenshots added in PR description (if change is visible to the user)
  • [/] Checked developer's documentation: Is the information available and up to date? If not, I outlined it in this pull request.
  • [/] Checked documentation: Is the information available and up to date? If not, I created an issue at https://github.com/JabRef/user-documentation/issues or, even better, I submitted a pull request to the documentation repository.

@koppor koppor changed the title Switch from Central Snapshots to JitPback Switch from Central Snapshots to JitPack Jul 2, 2025
Comment on lines +18 to +21
//SOURCES ../jabsrv/src/main/java/org/jabref/http/server/cayw/gui/SearchDialog.java
//SOURCES ../jabsrv/src/main/java/org/jabref/http/server/cayw/gui/SearchField.java
//SOURCES ../jabsrv/src/main/java/org/jabref/http/server/cayw/gui/SearchResultContainer.java
//SOURCES ../jabsrv/src/main/java/org/jabref/http/server/cayw/gui/SelectedItemsContainer.java
Copy link

Choose a reason for hiding this comment

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

Including GUI-related code in server components violates layered architecture principles. GUI code should only be a gateway, and complex operations should be in org.jabref.logic.

Copy link
Member Author

Choose a reason for hiding this comment

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

cc @subhramit :)

@koppor koppor marked this pull request as ready for review July 2, 2025 16:00
@koppor
Copy link
Member Author

koppor commented Jul 2, 2025

jitpack does not build the snapshot currently, but it works locally.

I merge and hope for the best :)

@koppor koppor added the automerge PR is tagged with that label will be merged if workflows are green label Jul 2, 2025
@koppor koppor enabled auto-merge July 2, 2025 16:03
// TODO: ASCII things won't work, but we accept for now to keep things going
//DEPS com.ibm.icu:icu4j:72.1

// disabled due to maven central issues
Copy link

Choose a reason for hiding this comment

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

Commented code with explanation should be removed. Version control history should be used to track these changes instead of keeping commented code in the source.

//SOURCES ../jabsrv/src/main/java/org/jabref/http/JabrefMediaType.java
//SOURCES ../jabsrv/src/main/java/org/jabref/http/JabRefResourceLocator.java
//SOURCES ../jabsrv/src/main/java/org/jabref/http/server/cayw/CAYWResource.java
//SOURCES ../jabsrv/src/main/java/org/jabref/http/server/cayw/gui/CAYWEntry.java
Copy link

Choose a reason for hiding this comment

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

GUI components are being sourced directly in the server package, violating the layered architecture principle. GUI code should be a gateway to logic code in org.jabref.logic.

Comment on lines +35 to +36
// disabled due to maven central issues
// DEPS org.jabref:jablib:6.+
Copy link

Choose a reason for hiding this comment

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

Commented code should be removed as it serves no functional purpose. Git history should be used to track these changes instead of keeping commented code.

@koppor koppor added this pull request to the merge queue Jul 2, 2025
Merged via the queue into main with commit 0cadd6c Jul 2, 2025
2 checks passed
@koppor koppor deleted the add-jitpack branch July 2, 2025 16:29
@Siedlerchr
Copy link
Member

Siedlerchr commented Jul 2, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge PR is tagged with that label will be merged if workflows are green dev: build-system

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants