Skip to content

Casterlabs' Commons library, for that sweet, sweet code reuse.

License

Notifications You must be signed in to change notification settings

Casterlabs/Commons

Repository files navigation

Casterlabs Commons

Casterlabs' Commons library, for that sweet, sweet code reuse.

Packages

We sort out the different utils into distinct packages, allowing you to pull in only what you need. This avoids bloating your builds with a bunch of unused code, like a lot of other commons libraries do.

Select a subproject to get started.

Platform • OS & CPU arch detection.
Async • Threading & async helpers.
Events • Event helpers.
Functional • Functional code helpers.
IPC • An in-progress IPC framework.
IO • Utilties for handling information.
WebSocket • An in-progress WebSocket client, not recommended for production use.

Repository

We use GitHub packages + our own resolver for our deployment and hosting.

Maven
<repositories>
  <repository>
    <id>casterlabs-maven</id>
    <url>https://repo.casterlabs.co/maven</url>
  </repository>
</repositories>
Gradle
allprojects {
  repositories {
  	maven { url 'https://repo.casterlabs.co/maven' }
  }
}
SBT
resolvers += "casterlabs-maven" at "https://repo.casterlabs.co/maven"
Leiningen
:repositories [["casterlabs-maven" "https://repo.casterlabs.co/maven"]]

Used by

  • Us :^)

Want your project included here? Open an issue and we'll add you ❤.

Development

This project utilizes Lombok for code generation (e.g Getters, Setters, Constructors), in order for your IDE to properly detect this, you'll need to install the Lombok extension. Instructions can be found here under "IDEs".

Java Version

We've chosen to be compatible with the 3rd last LTS, which currently is Java 11. This allows us to support a wide variety of projects while not pinning ourselves to an ancient version.

When Java 25 releases in 2025, this project will be upgraded to Java 17. We'll then make a java-11 tag and freeze it for those who may still be stuck on 11.

Current Legacy Tags