Skip to content

Commit

Permalink
Document import via Maven Central
Browse files Browse the repository at this point in the history
  • Loading branch information
Exlll committed Feb 24, 2024
1 parent f21d68e commit 093ded2
Showing 1 changed file with 24 additions and 5 deletions.
29 changes: 24 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1018,11 +1018,10 @@ the `dev` branch.**

To use this library, import it into your project with Maven or Gradle. Examples
of how to do that are at the end of this section within the spoilers. Currently,
there are two repositories from which you can
choose: [jitpack.io](https://jitpack.io/#Exlll/ConfigLib) and GitHub (which
requires authentication, see
this [issue](https://github.com/Exlll/ConfigLib/issues/12) if you have any
problems).
there are three repositories from which you can choose:
- [Maven Central](https://central.sonatype.com/search?q=de.exlll) (recommended),
- [jitpack.io](https://jitpack.io/#Exlll/ConfigLib), and
- GitHub (which [requires authentication](https://github.com/Exlll/ConfigLib/issues/12))

This library has additional dependencies (namely, a YAML parser) which are not
exposed by the artifact you import. You can download _plugin versions_ of this
Expand All @@ -1045,6 +1044,26 @@ If you want serialization support for Bukkit classes like `ItemStack`,
replace `configlib-yaml` with `configlib-paper`
(see [here](#support-for-bukkit-classes-like-itemstack)).

#### Import via Maven Central

**Maven**

```xml
<dependency>
<groupId>de.exlll</groupId>
<artifactId>configlib-yaml</artifactId>
<version>4.5.0</version>
</dependency>
```

**Gradle**

```kotlin
repositories { mavenCentral() }
dependencies { implementation("de.exlll:configlib-yaml:4.5.0") }
```

<details>
<summary>
Import via <a href="https://jitpack.io/#Exlll/ConfigLib">jitpack.io</a>
Expand Down

0 comments on commit 093ded2

Please sign in to comment.