Skip to content

Getting Started with Jankson

Adding Jankson to your project with Maven is simple.

Repositories

First, make sure Maven Central is in your repositories list.

Select your chosen build tool below to see the relevant code.

This goes in build.gradle:

repositories {
    mavenCentral()
    // Other repositories...
}

This goes in build.gradle.kts:

repositories {
    mavenCentral()
    // Other repositories...
}

Nothing needs to be added. Maven Central is included by default.

Dependencies

Then you can add the dependency itself.

This goes in your project's build.gradle file:

dependencies {
    // Other dependencies
    implementation "blue.endless:jankson:x.y.z"
}

This goes in your project's build.gradle.kts file:

dependencies {
    // Other dependencies
    implementation("blue.endless:jankson:x.y.z")
}

This goes in your project's pom.xml file:

<dependencies>
    <!-- Other dependencies -->
    <dependency>
        <groupId>blue.endless</groupId>
        <artifactId>jankson</artifactId>
        <version>x.y.z</version>
    </dependency>
</dependencies>

You can replace x.y.z in any of these with the latest version number.

The latest version of Jankson is Maven Central

All done

Wasn't that painless? Now you can move on to the next step.