Skip to content

Commit 0e16fd0

Browse files
authored
[DE-1050] Migrate to Maven Central Publishing Portal (#45)
1 parent a619e2b commit 0e16fd0

File tree

6 files changed

+14
-61
lines changed

6 files changed

+14
-61
lines changed

β€Ž.circleci/config.ymlβ€Ž

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,6 @@ commands:
4949
- run:
5050
name: Deploy to Apache Maven Central
5151
command: mvn -s .circleci/maven-release-settings.xml -Dmaven.test.skip=true deploy
52-
release:
53-
steps:
54-
- run:
55-
name: Release to Apache Maven Central
56-
command: mvn -s .circleci/maven-release-settings.xml -Dmaven.test.skip=true nexus-staging:release
5752

5853
executors:
5954
j8:
@@ -218,18 +213,6 @@ jobs:
218213
- deploy
219214
- store_cache
220215

221-
release:
222-
executor: 'j8'
223-
steps:
224-
- timeout:
225-
duration: '15m'
226-
- checkout
227-
- load_cache
228-
- config_gpg
229-
- deploy
230-
- release
231-
- store_cache
232-
233216
workflows:
234217

235218
test-standalone:
@@ -310,13 +293,3 @@ workflows:
310293
only: /^deploy.*/
311294
branches:
312295
ignore: /.*/
313-
314-
release:
315-
jobs:
316-
- release:
317-
context: java-release
318-
filters:
319-
tags:
320-
only: /^release.*/
321-
branches:
322-
ignore: /.*/

β€Ž.circleci/maven-release-settings.xmlβ€Ž

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<profiles>
55
<profile>
6-
<id>ossrh</id>
6+
<id>central</id>
77
<activation>
88
<activeByDefault>true</activeByDefault>
99
</activation>
@@ -16,9 +16,9 @@
1616

1717
<servers>
1818
<server>
19-
<id>ossrh</id>
20-
<username>${env.OSSRH_USERNAME}</username>
21-
<password>${env.OSSRH_PASSWORD}</password>
19+
<id>central</id>
20+
<username>${env.CENTRAL_USERNAME}</username>
21+
<password>${env.CENTRAL_PASSWORD}</password>
2222
</server>
2323
</servers>
2424

β€Ždemo/README.mdβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Set package version:
66

77
```shell
8-
export PACKAGE_VERSION=1.3.0
8+
export PACKAGE_VERSION=1.4.0-SNAPSHOT
99
```
1010

1111
Create the Docker network:

β€Žpom.xmlβ€Ž

Lines changed: 7 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.arangodb</groupId>
88
<artifactId>kafka-connect-arangodb</artifactId>
9-
<version>1.3.0</version>
9+
<version>1.4.0-SNAPSHOT</version>
1010
<packaging>jar</packaging>
1111
<inceptionYear>2023</inceptionYear>
1212

@@ -22,17 +22,6 @@
2222
</license>
2323
</licenses>
2424

25-
<distributionManagement>
26-
<snapshotRepository>
27-
<id>ossrh</id>
28-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
29-
</snapshotRepository>
30-
<repository>
31-
<id>ossrh</id>
32-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
33-
</repository>
34-
</distributionManagement>
35-
3625
<scm>
3726
<connection>scm:git:git://github.com/arangodb/kafka-connect-arangodb.git</connection>
3827
<developerConnection>scm:git:git://github.com/arangodb/kafka-connect-arangodb.git</developerConnection>
@@ -446,23 +435,14 @@
446435
</executions>
447436
</plugin>
448437
<plugin>
449-
<groupId>org.apache.maven.plugins</groupId>
450-
<artifactId>maven-deploy-plugin</artifactId>
451-
<version>3.1.2</version>
452-
<configuration>
453-
<retryFailedDeploymentCount>10</retryFailedDeploymentCount>
454-
</configuration>
455-
</plugin>
456-
<plugin>
457-
<groupId>org.sonatype.plugins</groupId>
458-
<artifactId>nexus-staging-maven-plugin</artifactId>
459-
<version>1.7.0</version>
438+
<groupId>org.sonatype.central</groupId>
439+
<artifactId>central-publishing-maven-plugin</artifactId>
440+
<version>0.8.0</version>
460441
<extensions>true</extensions>
461442
<configuration>
462-
<serverId>ossrh</serverId>
463-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
464-
<stagingProfileId>84aff6e87e214c</stagingProfileId>
465-
<autoReleaseAfterClose>false</autoReleaseAfterClose>
443+
<publishingServerId>central</publishingServerId>
444+
<autoPublish>true</autoPublish>
445+
<waitUntil>published</waitUntil>
466446
</configuration>
467447
</plugin>
468448
<plugin>

β€Žsrc/test/java/com/arangodb/kafka/ArangoSinkConnectorTest.javaβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ public class ArangoSinkConnectorTest {
88
@Test
99
void version(){
1010
String version = new ArangoSinkConnector().version();
11-
assertThat(version).isEqualTo("1.3.0");
11+
assertThat(version).isEqualTo("1.4.0-SNAPSHOT");
1212
}
1313
}

β€Žsrc/test/java/com/arangodb/kafka/ArangoSinkTaskTest.javaβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ public class ArangoSinkTaskTest {
88
@Test
99
void version(){
1010
String version = new ArangoSinkTask().version();
11-
assertThat(version).isEqualTo("1.3.0");
11+
assertThat(version).isEqualTo("1.4.0-SNAPSHOT");
1212
}
1313
}

0 commit comments

Comments
 (0)