Updated readme with gradle example

This commit is contained in:
Ranald 2018-11-04 18:45:02 -05:00 committed by GitHub
parent c8cb88f27a
commit eb70b07d4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
# VaultAPI - Abstraction Library API for Bukkit Plugins - [![](https://travis-ci.org/MilkBowl/VaultAPI.svg?branch=master)](https://travis-ci.org/MilkBowl/VaultAPI) # VaultAPI - Abstraction Library API for Bukkit Plugins - [![](https://travis-ci.org/MilkBowl/VaultAPI.svg?branch=master)](https://travis-ci.org/MilkBowl/VaultAPI)
How to include the API with Maven: How to include the API with Maven:
``` ```xml
<repositories> <repositories>
<repository> <repository>
<id>vault-repo</id> <id>vault-repo</id>
@ -17,6 +17,18 @@ How to include the API with Maven:
</dependency> </dependency>
</dependencies> </dependencies>
``` ```
How to include the API with Gradle:
```groovy
repositories {
maven {
url "http://nexus.hc.to/content/repositories/pub_releases"
}
}
dependencies {
compileOnly "net.milkbowl.vault:VaultAPI:1.7"
}
```
**Note**: The VaultAPI version has 2 numbers (major.minor), unlike Vault, which has 3. The 2 numbers in the VaultAPI will always correspond to the 2 beginning numbers in a Vault version to make it clear what versions your plugin will for sure work with. **Note**: The VaultAPI version has 2 numbers (major.minor), unlike Vault, which has 3. The 2 numbers in the VaultAPI will always correspond to the 2 beginning numbers in a Vault version to make it clear what versions your plugin will for sure work with.