Stardust 6 (beta)
The next version of the Stardust library focuses on fail-safety for error handling. It is currently in beta status, but it’s generally in a pretty stable condition, since I use it in my other software projects. However, parts of its API might change until the final release.
Key Features
Use Stardust 6 in Your Software Project
The following code sample shows how you can include Stardust in your software project using the Gradle build tool.
Select the modules you want use and add them to your build.gradle.kts file.
Beware that Stardust 6 is currently in beta stadium. Hence, its API is not final and might experience some changes.
repositories {
    // The URL to the Maven package registry to retrieve the artifacts of the Stardust library.
    // Find the GitLab repository under: <https://gitlab.com/jmpersch/stardust/-/packages>
    maven("https://gitlab.com/api/v4/projects/37316414/packages/maven")
}
dependencies {
    val stardustVersion = "6.0.0-beta-5"
    // Main module
    implementation("cc.persch:stardust-jvm:$stardustVersion")
    // Extension modules
    implementation("cc.persch:stardustx-cehc-jvm:$stardustVersion")
    implementation("cc.persch:stardustx-collections-jvm:$stardustVersion")
    implementation("cc.persch:stardustx-collections-immutable-jvm:$stardustVersion")
    implementation("cc.persch:stardustx-datetime-jvm:$stardustVersion")
    implementation("cc.persch:stardustx-text-jvm:$stardustVersion")
    implementation("cc.persch:stardustx-uuid-jvm:$stardustVersion")
    // Additional test utils to be used in Unit tests
    implementation("cc.persch:stardustx-test-jvm:$stardustVersion")
}
kotlin {
    compilerOptions {
        // Enable the experimental "context parameters" to make use of the "enclosed environments"
        freeCompilerArgs.add("-Xcontext-parameters")
    }
}