Skip to content

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

@roydbt

Description

@roydbt

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions