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?
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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