Skip to content

Commit 3978298

Browse files
author
Christopher Eteka
committed
Replace release URLs
1 parent 6690692 commit 3978298

5 files changed

Lines changed: 88 additions & 36 deletions

File tree

README.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,6 @@ The Client comes in 3 flavors:
1212

1313
## Setup
1414

15-
1. Add GitHub Maven Package Repository to your POM
16-
```xml
17-
<repositories>
18-
<repository>
19-
<id>github</id>
20-
<url>https://maven.pkg.github.com/chriseteka/paystackjavaclient</url>
21-
</repository>
22-
</repositories>
23-
```
24-
2515
### 1. When Using SpringBoot
2616
- Add the dependency to your spring boot project:
2717
```xml

paystack-clients-spring-boot-starter/pom.xml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
<maven.compiler.target>17</maven.compiler.target>
1414
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1515
<spring-boot-http-clients.version>0.1.1</spring-boot-http-clients.version>
16-
<distribution-repo.url>https://maven.pkg.github.com/chriseteka/paystackjavaclient</distribution-repo.url>
1716
</properties>
1817

1918
<dependencies>
@@ -35,18 +34,10 @@
3534
</dependency>
3635
</dependencies>
3736

38-
<repositories>
39-
<repository>
40-
<id>github</id>
41-
<url>${distribution-repo.url}</url>
42-
</repository>
43-
</repositories>
44-
4537
<distributionManagement>
4638
<repository>
47-
<id>github</id>
48-
<name>GitHub Packages</name>
49-
<url>${distribution-repo.url}</url>
39+
<id>ossrh</id>
40+
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
5041
</repository>
5142
</distributionManagement>
5243

paystack-clients/pom.xml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
<maven.compiler.target>17</maven.compiler.target>
1212
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1313
<okhttp.version>5.0.0-alpha.12</okhttp.version>
14-
<distribution-repo.url>https://maven.pkg.github.com/chriseteka/paystackjavaclient</distribution-repo.url>
1514
</properties>
1615

1716
<dependencies>
@@ -27,18 +26,10 @@
2726
</dependency>
2827
</dependencies>
2928

30-
<repositories>
31-
<repository>
32-
<id>github</id>
33-
<url>${distribution-repo.url}</url>
34-
</repository>
35-
</repositories>
36-
3729
<distributionManagement>
3830
<repository>
39-
<id>github</id>
40-
<name>GitHub Packages</name>
41-
<url>${distribution-repo.url}</url>
31+
<id>ossrh</id>
32+
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
4233
</repository>
4334
</distributionManagement>
4435

paystack-domain/pom.xml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
<maven.compiler.source>17</maven.compiler.source>
1212
<maven.compiler.target>17</maven.compiler.target>
1313
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
14-
<distribution-repo.url>https://maven.pkg.github.com/chriseteka/paystackjavaclient</distribution-repo.url>
1514
</properties>
1615

1716
<dependencies>
@@ -29,9 +28,8 @@
2928

3029
<distributionManagement>
3130
<repository>
32-
<id>github</id>
33-
<name>GitHub Packages</name>
34-
<url>${distribution-repo.url}</url>
31+
<id>ossrh</id>
32+
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
3533
</repository>
3634
</distributionManagement>
3735
</project>

pom.xml

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,86 @@
2525
<tag>HEAD</tag>
2626
</scm>
2727

28+
<licenses>
29+
<license>
30+
<name>MIT License</name>
31+
<url>https://www.opensource.org/licenses/mit-license.php</url>
32+
<distribution>repo</distribution>
33+
</license>
34+
</licenses>
35+
36+
<developers>
37+
<developer>
38+
<id>chriseteka</id>
39+
<name>Christopher Eteka</name>
40+
</developer>
41+
</developers>
42+
43+
<profiles>
44+
<profile>
45+
<id>release</id>
46+
<build>
47+
<plugins>
48+
<plugin>
49+
<groupId>org.sonatype.central</groupId>
50+
<artifactId>central-publishing-maven-plugin</artifactId>
51+
<version>0.3.0</version>
52+
<extensions>true</extensions>
53+
<configuration>
54+
<publishingServerId>maven</publishingServerId>
55+
<tokenAuth>true</tokenAuth>
56+
<autoPublish>true</autoPublish>
57+
</configuration>
58+
</plugin>
59+
<plugin>
60+
<groupId>org.apache.maven.plugins</groupId>
61+
<artifactId>maven-javadoc-plugin</artifactId>
62+
<version>3.4.1</version>
63+
<executions>
64+
<execution>
65+
<id>attach-javadoc</id>
66+
<goals>
67+
<goal>jar</goal>
68+
</goals>
69+
</execution>
70+
</executions>
71+
</plugin>
72+
<plugin>
73+
<groupId>org.apache.maven.plugins</groupId>
74+
<artifactId>maven-source-plugin</artifactId>
75+
<version>3.2.1</version>
76+
<executions>
77+
<execution>
78+
<id>attach-source</id>
79+
<goals>
80+
<goal>jar</goal>
81+
</goals>
82+
</execution>
83+
</executions>
84+
</plugin>
85+
<plugin>
86+
<groupId>org.apache.maven.plugins</groupId>
87+
<artifactId>maven-gpg-plugin</artifactId>
88+
<version>3.1.0</version>
89+
<configuration>
90+
<gpgArguments>
91+
<arg>--pinentry-mode</arg>
92+
<arg>loopback</arg>
93+
</gpgArguments>
94+
</configuration>
95+
<executions>
96+
<execution>
97+
<id>sign-artifacts</id>
98+
<phase>verify</phase>
99+
<goals>
100+
<goal>sign</goal>
101+
</goals>
102+
</execution>
103+
</executions>
104+
</plugin>
105+
</plugins>
106+
</build>
107+
</profile>
108+
</profiles>
109+
28110
</project>

0 commit comments

Comments
 (0)