Update README.md with maven repository/dependency

This commit is contained in:
Frank van der Heijden 2021-01-11 19:29:21 +01:00 committed by GitHub
parent a972e9aee0
commit a653de8e00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,5 +45,32 @@ For the full description of this plugin, please refer to the ServerUtils [Spigot
2. Run the project with `gradle clean build` to compile all submodules with dependencies. 2. Run the project with `gradle clean build` to compile all submodules with dependencies.
3. Afterwards, the platform specific plugins and platform independent compiled jars can be found in the `jars/` directory. 3. Afterwards, the platform specific plugins and platform independent compiled jars can be found in the `jars/` directory.
## API Repository / Dependency
Please use the following maven repository:
#### Gradle:
```groovy
maven { url 'https://jitpack.io' }
```
and as dependency:
```groovy
compileOnly 'com.github.FrankHeijden:ServerUtils:TAG'
```
#### Maven:
```xml
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
```
and as dependency:
```xml
<dependency>
<groupId>com.github.FrankHeijden</groupId>
<artifactId>ServerUtils</artifactId>
<version>TAG</version>
<scope>provided</scope>
</dependency>
```
## Commands and Permissions ## Commands and Permissions
Please refer to the [SpigotMC][spigot] page for an updated overview of the commands and permissions. Please refer to the [SpigotMC][spigot] page for an updated overview of the commands and permissions.