Relocate bundled libraries in the plugin JAR

Abierto
#75 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
55/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
java
Área
build-system

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.
Lenguaje dominante
Java
Estrellas
1
Forks
0
Merge medio
2 h 35 min
PR fusionados (30 d)
14

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de BrendonButler/Shops

Todos los issues de BrendonButler/Shops

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.