Skip to content

Latest commit

 

History

History
51 lines (41 loc) · 1.32 KB

README.md

File metadata and controls

51 lines (41 loc) · 1.32 KB

Bill of materials for IntellectualSites plugins

This repository implements a Maven BOM which can be used in a plugin's build file to more easily manage dependencies on other common plugins.

Usage

Import the BOM

Gradle

dependencies {
    implementation(platform("com.intellectualsites.bom:bom-newest:<VERSION>"))
}

You can find more information about shared and managed dependencies with Gradle here.

Maven

<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>com.intellectualsites.bom</groupId>
            <artifactId>bom-newest</artifactId>
            <version>VERSION</version>
            <scope>import</scope>
            <type>pom</type>
        </dependency>
    </dependencies>
</dependencyManagement>

Declaring dependencies

Now you can declare dependencies without needing to specify a version:

Gradle

dependencies {
    compileOnly("org.checkerframework:checker-qual")
}

Maven

<dependency>
    <groupId>org.checkerframework</groupId>
    <artifactId>checker-qual</artifactId>
</dependency>

You can always override a version managed by the BOM if you wish.