Relocate bundled libraries in the plugin JAR

Aperta
#75 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
java
Ambito
build-system

Direzione di ricerca

Start by reading the project's Shade configuration and identify how it packages Jackson, Configurate, geantyref, and their dependencies. Add relocation under net.sparkzz.shops.libs, then inspect whether minimizeJar preserves classes used through reflection. Check the JAR for third-party packages outside net/sparkzz/ and verify that the plugin starts and loads stores on the Docker test servers.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

dependencies enhancement

Problem

The plugin JAR bundles Jackson, Configurate, geantyref and their dependencies without relocating them. Another plugin that bundles a different version of the same library can load classes that don't match, which shows up as NoSuchMethodError or similar errors that are hard to trace.

Scope

  • Add <relocations> to the Shade configuration under a net.sparkzz.shops.libs package.
  • Check that minimizeJar still keeps everything that's used by reflection.

Done when

  • No third-party packages remain outside net/sparkzz/ in the JAR, apart from those provided by the server.
  • The plugin starts and loads stores on the Docker test servers.
Lingua principale
Java
Stelle
1
Fork
0
Merge medio
2h 35m
PR unite (30g)
14

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di BrendonButler/Shops

Tutte le issue di BrendonButler/Shops

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.