Skip to content

Commit aa81600

Browse files
committed
editted readme.md
1 parent b772a5e commit aa81600

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,14 @@ After then returns boolean about license status.
77

88
## Usage
99
```java
10-
public static void main(String... args) throws BuilderException {
10+
public static void main(String... args) {
1111
License license = new License.LicenseBuilder()
1212
.setProductName("Test")
1313
.setLink("https://poyrazinan.com.tr/api/plugin/check.php?plugin={product}&ip={ip}")
1414
.build();
15+
// You can check is something goes wrong with license query.
16+
// All you want to do is surrounding license.run() with try and catch
17+
// which can cause ConnectionFailureException.
1518
boolean status = license.run();
1619
if (!status) {
1720
// If license couldn't found.
@@ -41,7 +44,7 @@ public static void main(String... args) throws BuilderException {
4144
<dependency>
4245
<groupId>com.github.poyrazinan</groupId>
4346
<artifactId>JavaLicense</artifactId>
44-
<version>1.0.1</version>
47+
<version>1.1</version>
4548
<scope>compile</scope>
4649
</dependency>
4750
</dependencies>
@@ -53,10 +56,13 @@ repositories {
5356
}
5457
5558
dependencies {
56-
implementation 'com.github.poyrazinan:JavaLicense:1.0.1'
59+
implementation 'com.github.poyrazinan:JavaLicense:1.1'
5760
}
5861
```
5962

63+
### Local Dependency
64+
> You can find jar on releases.
65+
6066
## Requirements:
6167

6268
* Web API for storing licenses and check.

0 commit comments

Comments
 (0)