Add dependency code

alexcrea 2024-07-13 12:44:06 +02:00
parent f9f65ec77d
commit 6233caad9e

28
Home.md

@ -13,9 +13,33 @@ Here are the general step to make your plugin compatible with Custom Anvil:
You can also register Custom anvil recipe if you like to. You can also register Custom anvil recipe if you like to.
## Add custom anvil as dependency ## Add custom anvil as dependency
Custom Anvil is available on [Maven Central](https://central.sonatype.com/artifact/xyz.alexcrea/CustomAnvil)
Currently, there is no clean way to add Custom Anvil as a dependency for your plugin. \ Make sure `mavenCentral()` is present in your gradle repositories
Working on that.
### Maven dependency
```xml
<dependency>
<groupId>xyz.alexcrea</groupId>
<artifactId>CustomAnvil</artifactId>
<version>1.5.2</version>
</dependency>
```
### Gradle dependency (Groovy)
```groovy
dependencies {
implementation 'xyz.alexcrea:CustomAnvil:1.5.2'
}
```
### Gradle dependency (Kotlin)
```groovy
dependencies {
implementation("xyz.alexcrea:CustomAnvil:1.5.2")
}
```
## Complementary information ## Complementary information