Skip to content

Commit a9ed79a

Browse files
committed
update maven-central related build info
1 parent eff1f55 commit a9ed79a

File tree

3 files changed

+28
-24
lines changed

3 files changed

+28
-24
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ jobs:
3939
distribution: 'zulu'
4040
java-version: ${{ matrix.java-version }}
4141
cache: "maven"
42-
server-id: sonatype
42+
server-id: central
4343
server-username: MAVEN_USERNAME
4444
server-password: MAVEN_PASSWORD
4545

4646
- name: Build and Test with Sonar Analysis
4747
if: matrix.sonar-enabled
4848
run: |
49-
./mvnw -B -U -Dstyle.color=always -Possrh -Pcoverage clean verify \
49+
./mvnw -B -U -Dstyle.color=always -Pcoverage clean verify \
5050
org.sonarsource.scanner.maven:sonar-maven-plugin:sonar \
5151
-Dsonar.projectKey=AxonIQ_axonserver-connector-java
5252
env:
@@ -56,7 +56,7 @@ jobs:
5656
- name: Build and Test without Sonar Analysis
5757
if: matrix.sonar-enabled != true
5858
run: |
59-
mvn -B -U -Dstyle.color=always -Possrh clean verify
59+
mvn -B -U -Dstyle.color=always clean verify
6060
env:
6161
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6262

.github/workflows/pullrequest.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- name: Build and Test with Sonar Analysis
3838
if: matrix.sonar-enabled
3939
run: |
40-
./mvnw -B -U -Dstyle.color=always -Possrh -Pcoverage clean verify \
40+
./mvnw -B -U -Dstyle.color=always -Pcoverage clean verify \
4141
org.sonarsource.scanner.maven:sonar-maven-plugin:sonar \
4242
-Dsonar.projectKey=AxonIQ_axonserver-connector-java
4343
env:
@@ -47,6 +47,6 @@ jobs:
4747
- name: Build and Test without Sonar Analysis
4848
if: matrix.sonar-enabled != true
4949
run: |
50-
mvn -B -U -Dstyle.color=always -Possrh clean verify
50+
mvn -B -U -Dstyle.color=always clean verify
5151
env:
5252
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

pom.xml

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
<httpclient5.version>5.4.1</httpclient5.version>
6767
<toxiproxy.version>2.1.7</toxiproxy.version>
6868
<maven.surefire.plugin.version>3.5.2</maven.surefire.plugin.version>
69+
<central-publishing-maven-plugin.version>0.7.0</central-publishing-maven-plugin.version>
6970
</properties>
7071

7172
<dependencyManagement>
@@ -379,8 +380,13 @@
379380
</configuration>
380381
</plugin>
381382
<plugin>
382-
<artifactId>maven-deploy-plugin</artifactId>
383-
<version>3.1.3</version>
383+
<groupId>org.sonatype.central</groupId>
384+
<artifactId>central-publishing-maven-plugin</artifactId>
385+
<version>${central-publishing-maven-plugin.version}</version>
386+
<extensions>true</extensions>
387+
<configuration>
388+
<publishingServerId>central</publishingServerId>
389+
</configuration>
384390
</plugin>
385391
<plugin>
386392
<artifactId>maven-compiler-plugin</artifactId>
@@ -566,25 +572,23 @@
566572
</plugins>
567573
</build>
568574
</profile>
569-
<profile>
570-
<id>ossrh</id>
571-
<repositories>
572-
<repository>
573-
<id>sonatype</id>
574-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
575-
<snapshots>
576-
<enabled>true</enabled>
577-
<checksumPolicy>fail</checksumPolicy>
578-
<updatePolicy>always</updatePolicy>
579-
</snapshots>
580-
<releases>
581-
<enabled>false</enabled>
582-
</releases>
583-
</repository>
584-
</repositories>
585-
</profile>
586575
</profiles>
587576

577+
<repositories>
578+
<repository>
579+
<name>Central Portal Snapshots</name>
580+
<id>central-portal-snapshots</id>
581+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
582+
<releases>
583+
<enabled>false</enabled>
584+
</releases>
585+
<snapshots>
586+
<enabled>true</enabled>
587+
</snapshots>
588+
</repository>
589+
</repositories>
590+
591+
588592
<scm>
589593
<connection>scm:git:https://github.com/AxonIQ/axonserver-connector-java.git</connection>
590594
<developerConnection>scm:git:https://github.com/AxonIQ/axonserver-connector-java.git</developerConnection>

0 commit comments

Comments
 (0)