Skip to content

Commit 1a09c84

Browse files
Add gradle and maven dependency documentation
1 parent 4b06224 commit 1a09c84

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,38 @@ class Example {
5151
}
5252
```
5353

54+
## As a dependency
55+
### Gradle
56+
```groovy
57+
repositories {
58+
maven { url 'https://jitpack.io' }
59+
}
60+
```
61+
62+
```groovy
63+
dependencies {
64+
implementation 'com.github.lightlibs:simplehttpwrapper:[VERSION-STRING]'
65+
}
66+
```
67+
68+
### Maven
69+
```xml
70+
<repositories>
71+
<repository>
72+
<id>jitpack.io</id>
73+
<url>https://jitpack.io</url>
74+
</repository>
75+
</repositories>
76+
```
77+
78+
```xml
79+
<dependency>
80+
<groupId>com.github.lightlibs</groupId>
81+
<artifactId>simplehttpwrapper</artifactId>
82+
<version>[VERSION-STRING]</version>
83+
</dependency>
84+
```
85+
5486
Note: Make sure to handle `IOException` when making the requests.
5587

5688
Feel free to customize the code or add additional functionality as needed. And make a PR ;)

0 commit comments

Comments
 (0)