-
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
139 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
## `kotlin-faker-bom` | ||
|
||
[![Maven Central](https://img.shields.io/maven-central/v/io.github.serpro69/kotlin-faker-bom?style=for-the-badge)](https://search.maven.org/artifact/io.github.serpro69/kotlin-faker-bom) | ||
[![Sonatype Nexus (Snapshots)](https://img.shields.io/nexus/s/io.github.serpro69/kotlin-faker-bom?label=snapshot-version&server=https%3A%2F%2Foss.sonatype.org&style=for-the-badge&color=yellow)](#downloading) | ||
|
||
Kotlin-faker provides a [Bill-of-Materials](https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#bill-of-materials-bom-poms) that simplifies dependency management. | ||
|
||
## Usage | ||
|
||
Documentation for kotlin-faker is available at [serpro69.github.io/kotlin-faker/](https://serpro69.github.io/kotlin-faker/). | ||
|
||
### Downloading | ||
|
||
Latest releases are always available on maven central. | ||
|
||
**With gradle** | ||
|
||
To [import Maven BOM with Gradle](https://docs.gradle.org/current/userguide/platforms.html#sub:bom_import), 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 | ||
|
||
```groovy | ||
dependencies { | ||
implementation platform('io.github.serpro69:kotlin-faker-bom:$version') | ||
implementation 'io.github.serpro69:kotlin-faker' | ||
implementation 'io.github.serpro69:kotlin-faker-books' | ||
implementation 'io.github.serpro69:kotlin-faker-tech' | ||
// rest of dependencies | ||
} | ||
``` | ||
|
||
**With maven** | ||
|
||
To use the BOM, a dependency on `kotlin-faker-bom` needs to be declared in the `<dependencyManagement>` block of the `pom.xml`, file: | ||
|
||
```xml | ||
<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: | ||
|
||
```xml | ||
<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> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
--- | ||
--- | ||
|
||
# Kotlin-faker BOM | ||
|
||
[![Maven Central](https://img.shields.io/maven-central/v/io.github.serpro69/kotlin-faker-bom?style=for-the-badge)](https://search.maven.org/artifact/io.github.serpro69/kotlin-faker-bom) | ||
[![Sonatype Nexus (Snapshots)](https://img.shields.io/nexus/s/io.github.serpro69/kotlin-faker-bom?label=snapshot-version&server=https%3A%2F%2Foss.sonatype.org&style=for-the-badge&color=yellow)](#downloading) | ||
|
||
Kotlin-faker provides a [Bill-of-Materials](https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#bill-of-materials-bom-poms) that simplifies dependency management. | ||
|
||
## Usage | ||
|
||
### Downloading | ||
|
||
Latest releases are always available on maven central. | ||
|
||
**With gradle** | ||
|
||
To [import Maven BOM with Gradle](https://docs.gradle.org/current/userguide/platforms.html#sub:bom_import), 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 | ||
|
||
```groovy | ||
dependencies { | ||
implementation platform('io.github.serpro69:kotlin-faker-bom:$version') | ||
implementation 'io.github.serpro69:kotlin-faker' | ||
implementation 'io.github.serpro69:kotlin-faker-books' | ||
implementation 'io.github.serpro69:kotlin-faker-tech' | ||
// rest of dependencies | ||
} | ||
``` | ||
|
||
**With maven** | ||
|
||
To use the BOM, a dependency on `kotlin-faker-bom` needs to be declared in the `<dependencyManagement>` block of the `pom.xml`, file: | ||
|
||
```xml | ||
<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: | ||
|
||
```xml | ||
<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> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters