Skip to content

Commit bcaac98

Browse files
committed
Adds installation via GitHub Packages to README
1 parent f2eb2c9 commit bcaac98

1 file changed

Lines changed: 7 additions & 37 deletions

File tree

README.md

Lines changed: 7 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,19 @@ JARs, POMs and docs available are at https://labs.smsapi.com/maven.
66

77
Library https://github.com/douglascrockford/JSON-java is required.
88

9-
### How to install using Maven
9+
### How to install using GitHub Packages
10+
11+
Read https://docs.github.com/en/packages/learn-github-packages/installing-a-package
1012

1113
Add following in your project **pom.xml** file:
1214

1315
* in `<repositories>` section add SMSAPI repository:
1416

1517
```xml
1618
<repository>
17-
<releases>
18-
<enabled>true</enabled>
19-
<updatePolicy>always</updatePolicy>
20-
<checksumPolicy>fail</checksumPolicy>
21-
</releases>
22-
<id>smsapi</id>
23-
<name>smsapi</name>
24-
<url>https://labs.smsapi.com/maven/</url>
25-
<layout>default</layout>
19+
<id>github-smsapi</id>
20+
<name>SMSAPI Java Client GitHub Packages</name>
21+
<url>https://maven.pkg.github.com/smsapi/smsapi-java-client</url>
2622
</repository>
2723
```
2824

@@ -32,36 +28,10 @@ Add following in your project **pom.xml** file:
3228
<dependency>
3329
<groupId>pl.smsapi</groupId>
3430
<artifactId>smsapi-lib</artifactId>
35-
<version>2.4</version>
31+
<version>3.0.0-RC1</version>
3632
</dependency>
3733
```
3834

39-
### How to install using Gradle
40-
41-
Add following in your project **build.gradle** file:
42-
43-
* in `plugins` section:
44-
45-
```
46-
id 'java'
47-
id 'java-library'
48-
```
49-
50-
* in `repositories` section:
51-
52-
```
53-
mavenCentral()
54-
maven {
55-
url 'https://labs.smsapi.com/maven/'
56-
}
57-
```
58-
59-
* in `dependencies` section:
60-
61-
```
62-
api 'pl.smsapi:smsapi-lib:2.5'
63-
```
64-
6535
## How to use
6636

6737
To use *SMSAPI.PL* set proxy URL to **https://api.smsapi.pl/**. \

0 commit comments

Comments
 (0)