Can I wrap a Java library to use in Swift if the package comes from an external Maven repository or even a local package?

Đang mở
#551 1 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
java, swift
Lĩnh vực
tooling

Hướng nghiên cứu

Bắt đầu bằng cách đọc swift-java.config và tài liệu hoặc đường dẫn cấu hình được sử dụng cho các dependency của Maven Central. Kiểm tra cách biểu diễn một Maven repository tùy chỉnh hoặc local package, sau đó xác minh kết quả bằng repository Hytale và các chi tiết dependency từ issue. Hoàn tất khi một dự án Swift có thể truy cập thư viện Java Hytale được chỉ định từ repository bên ngoài hoặc local package của thư viện đó.

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

Mô tả

feature:resolve

Hi there,

I am trying to create a plugin for Hytale using Swift, and I got stuck on the very first step: accessing the Hytale’s Java library from swift. All the documentations I saw use packages from Maven central, but Hytale’s package is from a custom repository:

<repositories>
        <!-- Hytale release repository -->
        <repository>
            <id>hytale-release</id>
            <url>https://maven.hytale.com/release</url>
        </repository>
        <!-- Hytale pre-release repository -->
        <repository>
            <id>hytale-pre-release</id>
            <url>https://maven.hytale.com/pre-release</url>
        </repository>
    </repositories>

    <dependencies>
        <dependency>
            <groupId>com.hypixel.hytale</groupId>
            <artifactId>Server</artifactId>
            <version>2026.01.28-87d03be09</version>
            <scope>provided</scope>
        </dependency>
    </dependencies>

I couldn’t find anyone out there doing something like this (accessing an external repository), and I couldn’t find in the swift-java.config file how to set a custom repository. How can I do that?

Ngôn ngữ chính
Swift
Star
1.3k
Fork
127
Merge trung bình
2 ngày 14 giờ
Pull request đã merge (30 ngày)
5

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 swiftlang/swift-java

Tất cả issue của swiftlang/swift-java

Issue tương tự

Thêm issue về Swift

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.