Relocate bundled libraries in the plugin JAR

Đang mở
#75 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
55/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
java
Lĩnh vực
build-system

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
Java
Star
1
Fork
0
Merge trung bình
2 giờ 35 phút
Pull request đã merge (30 ngày)
14

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của BrendonButler/Shops

Tất cả issue của BrendonButler/Shops

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.