Skip to content

Commit 7c927b7

Browse files
committed
Add Gradle example to README.md
1 parent d2fc5f9 commit 7c927b7

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

README.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,34 @@ Hypixel [Code Creations](https://hypixel.net/forums/code-creations.65/) forum.
1818
You can use this API as a dependency via the public Hypixel maven repo.
1919

2020
```xml
21-
2221
<repository>
2322
<id>Hypixel</id>
2423
<url>https://repo.hypixel.net/repository/Hypixel/</url>
2524
</repository>
2625
```
2726

2827
```xml
29-
3028
<dependency>
3129
<groupId>net.hypixel</groupId>
3230
<artifactId>HypixelAPI</artifactId>
3331
<version>3.0.0</version>
3432
</dependency>
3533
```
3634

35+
This repo can also be used with Gradle in the following form.
36+
37+
```gradle
38+
repositories {
39+
maven { url 'https://repo.hypixel.net/repository/Hypixel/' }
40+
}
41+
```
42+
43+
```gradle
44+
dependencies {
45+
implementation 'net.hypixel:HypixelAPI:3.0.0'
46+
}
47+
```
48+
3749
### Dependencies
3850

3951
The Hypixel PublicAPI has the following dependencies:

0 commit comments

Comments
 (0)