/collections

Uncommon data structure collections for Java 8

Primary LanguageJavaMIT LicenseMIT

collections

GitHub Workflow Status (branch) MIT License Maven Central Sonatype Nexus (Snapshots)

Prerequisites

  • Java 8

Building from Source

In order to build collections you simply need to run the ./gradlew build command. You can find the compiled JAR file in ./build/libs labeled similarly to 'collections-x.x.x-SNAPSHOT.jar'.

Contributing

Are you a talented programmer looking to contribute some code? We'd love the help!

  • Open a pull request with your changes, following our guidelines.

Usage

collections publishes releases on Maven Central and Sponge's own repository. Snapshots are published on Sonatype OSSRH and Sponge's repository.

If you're using Gradle to manage project dependencies, simply include the following in your build.gradle file:

repositories {
  // releases
  mavenCentral()
  // snapshots
  maven {
    url "https://repo.spongepowered.org/repository/maven-public/"
  }
}

dependencies {
  implementation "org.spongepowered:collections:2.0.0-SNAPSHOT"
}
repositories {
    // releases
    mavenCentral()
    // snapshots
    maven("https://repo.spongepowered.org/repository/maven-public/")
}

// Can be declared in line
val collectionsVersion: String = "1.0.0-SNAPSHOT"
// Or pulled from gradle.properties file
val collectionsVersion: String by project

dependencies {
    implementation("org.spongepowered:collections:$collectionsVersion")
}

If you're using Maven to manage project dependencies, simply include the following in your pom.xml file:

<dependency>
  <groupId>org.spongepowered</groupId>
  <artifactId>collections</artifactId>
  <version>2.0.0-SNAPSHOT</version>
</dependency>

Credits