Kotlin-faker BOM¶
Kotlin-faker provides a Bill-of-Materials that simplifies dependency management.
Usage¶
Downloading¶
Latest releases are always available on maven central.
To import Maven BOM with Gradle, a platform dependency needs to be declared on the kotlin-faker-bom. The rest of kotlin-faker dependencies do not need to specify the versions explicitly as they will be pulled from the BOM
To use the BOM, a dependency on kotlin-faker-bom needs to be declared in the <dependencyManagement> block of the pom.xml, file:
<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>io.github.serpro69</groupId>
            <artifactId>kotlin-faker-bom</artifactId>
            <version>${kotlin-faker.version}</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>
Then add the dependencies as usual but w/o specifying the versions, which will be pulled from the BOM:
<dependencies>
    <dependency>
        <groupId>io.github.serpro69</groupId>
        <artifactId>kotlin-faker</artifactId>
    </dependency>
    <dependency>
        <groupId>io.github.serpro69</groupId>
        <artifactId>kotlin-faker-books</artifactId>
    </dependency>
    <dependency>
        <groupId>io.github.serpro69</groupId>
        <artifactId>kotlin-faker-tech</artifactId>
    </dependency>
    <!-- rest of dependencies as needed -->
</dependencies>