Skip to content

Commit d0f4017

Browse files
authored
Merge pull request #34 from Midtrans/deployment-migration
Deployment migration
2 parents 9ae0872 + 0dcc616 commit d0f4017

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,21 @@ Maven:
1414
<dependency>
1515
<groupId>com.midtrans</groupId>
1616
<artifactId>java-library</artifactId>
17-
<version>3.2.1</version>
17+
<version>3.2.2</version>
1818
</dependency>
1919
```
2020
Gradle:
2121
If you're using Gradle as the build tools for your project, please add jcenter repository to your build script then add the following dependency to your project's build definition (build.gradle):
2222
```Gradle
2323
dependencies {
24-
implementation 'com.midtrans:java-library:3.2.1'
24+
implementation 'com.midtrans:java-library:3.2.2'
2525
}
2626
```
2727
> **IMPORTANT NOTE**: Since April 13, 2021 We already migrate the repository from jcenter/bintray repository to [Maven central](https://search.maven.org/artifact/com.midtrans/java-library).
2828
2929
### 1.b Using JAR File
3030

31-
If you are not using project build management like Maven, Gradle or Ant you can use manual jar library download JAR Library on [here](https://search.maven.org/remotecontent?filepath=com/midtrans/java-library/3.2.1/java-library-3.2.1.jar)
31+
If you are not using project build management like Maven, Gradle or Ant you can use manual jar library download JAR Library on [here](https://search.maven.org/remotecontent?filepath=com/midtrans/java-library/3.2.2/java-library-3.2.2.jar)
3232

3333
## 2. Usage
3434

library/pom.xml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,13 @@
9696
<build>
9797
<plugins>
9898
<plugin>
99-
<groupId>org.sonatype.plugins</groupId>
100-
<artifactId>nexus-staging-maven-plugin</artifactId>
101-
<version>1.7.0</version>
99+
<groupId>org.sonatype.central</groupId>
100+
<artifactId>central-publishing-maven-plugin</artifactId>
101+
<version>0.7.0</version>
102102
<extensions>true</extensions>
103103
<configuration>
104-
<serverId>ossrh</serverId>
105-
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
104+
<publishingServerId>central</publishingServerId>
105+
<autoPublish>false</autoPublish>
106106
</configuration>
107107
</plugin>
108108
<plugin>
@@ -184,12 +184,12 @@
184184

185185
<distributionManagement>
186186
<snapshotRepository>
187-
<id>ossrh</id>
188-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
187+
<id>central</id>
188+
<url>https://central.sonatype.com</url>
189189
</snapshotRepository>
190190
<repository>
191-
<id>ossrh</id>
192-
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
191+
<id>central</id>
192+
<url>https://central.sonatype.com</url>
193193
</repository>
194194
</distributionManagement>
195195

0 commit comments

Comments
 (0)