swiftlang / swiftlang/swift-java

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

Open
#551 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature:resolve
Dominant language
Swift
Stars
1.2k
Forks
123
Avg merge
1d 7h
Merged PRs (30d)
16

Description

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?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading swift-java.config and the documentation or configuration path used for Maven Central dependencies. Check how a custom Maven repository or local package could be represented, then verify the result with the Hytale repository and dependency details from the issue. Done means a Swift project can access the specified Hytale Java library from its external repository or local package.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, swift
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.