Skip to content

Commit ce4001a

Browse files
updates to support new maven central repos (#572)
1 parent a456d1b commit ce4001a

5 files changed

Lines changed: 42 additions & 44 deletions

File tree

.github/workflows/build.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ permissions:
99
checks: write
1010

1111
concurrency:
12-
group: ${{ github.head_ref || github.run_id }}
13-
cancel-in-progress: true
12+
group: ${{ github.head_ref || github.run_id }}
13+
cancel-in-progress: true
1414

1515
jobs:
1616
maven:
@@ -19,10 +19,11 @@ jobs:
1919
- uses: actions/checkout@v4
2020
- uses: actions/setup-java@v4
2121
with:
22-
distribution: 'temurin'
23-
java-version: '21'
24-
cache: 'maven'
25-
server-id: ossrh
22+
distribution: "temurin"
23+
java-version: "21"
24+
cache: "maven"
25+
server-id: central
26+
server-url: https://repo1.maven.org/maven2
2627
server-username: MAVEN_USERNAME
2728
server-password: MAVEN_PASSWORD
2829
- name: Publish snapshot

pom.xml

Lines changed: 27 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>org.opencds.cqf</groupId>
77
<artifactId>tooling-parent</artifactId>
8-
<version>3.9.0-SNAPSHOT</version>
8+
<version>3.9.1-SNAPSHOT</version>
99

1010
<packaging>pom</packaging>
1111

@@ -70,25 +70,20 @@
7070
<url>http://github.com/cqframework/cqf-tooling.git/tree/master</url>
7171
</scm>
7272

73-
<distributionManagement>
74-
<snapshotRepository>
75-
<id>ossrh</id>
76-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
77-
</snapshotRepository>
78-
<repository>
79-
<id>ossrh</id>
80-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
81-
</repository>
82-
</distributionManagement>
83-
8473
<repositories>
8574
<repository>
86-
<id>oss-sonatype-public</id>
87-
<url>https://oss.sonatype.org/content/groups/public/</url>
75+
<id>central</id>
76+
<url>https://repo1.maven.org/maven2</url>
77+
<releases>
78+
<enabled>true</enabled>
79+
</releases>
8880
</repository>
8981
<repository>
90-
<id>oss-sonatype</id>
91-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
82+
<id>central-snapshots</id>
83+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
84+
<releases>
85+
<enabled>false</enabled>
86+
</releases>
9287
<snapshots>
9388
<enabled>true</enabled>
9489
</snapshots>
@@ -412,16 +407,6 @@
412407
</execution>
413408
</executions>
414409
</plugin>
415-
<plugin>
416-
<groupId>org.sonatype.plugins</groupId>
417-
<artifactId>nexus-staging-maven-plugin</artifactId>
418-
<version>1.6.13</version>
419-
<extensions>true</extensions>
420-
<configuration>
421-
<serverId>ossrh</serverId>
422-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
423-
</configuration>
424-
</plugin>
425410
<plugin>
426411
<groupId>org.apache.maven.plugins</groupId>
427412
<artifactId>maven-enforcer-plugin</artifactId>
@@ -491,6 +476,18 @@
491476
<groupId>org.apache.maven.plugins</groupId>
492477
<artifactId>maven-failsafe-plugin</artifactId>
493478
</plugin>
479+
<plugin>
480+
<groupId>org.sonatype.central</groupId>
481+
<artifactId>central-publishing-maven-plugin</artifactId>
482+
<version>0.8.0</version>
483+
<extensions>true</extensions>
484+
<configuration>
485+
<publishingServerId>central</publishingServerId>
486+
<deploymentName>cqf-tooling</deploymentName>
487+
<autoPublish>true</autoPublish>
488+
<waitUntil>published</waitUntil>
489+
</configuration>
490+
</plugin>
494491
</plugins>
495492
</build>
496493

@@ -552,10 +549,6 @@
552549
<groupId>org.apache.maven.plugins</groupId>
553550
<artifactId>maven-gpg-plugin</artifactId>
554551
</plugin>
555-
<plugin>
556-
<groupId>org.sonatype.plugins</groupId>
557-
<artifactId>nexus-staging-maven-plugin</artifactId>
558-
</plugin>
559552
<plugin>
560553
<groupId>org.apache.maven.plugins</groupId>
561554
<artifactId>maven-surefire-plugin</artifactId>
@@ -570,6 +563,10 @@
570563
<argLine>-Xmx1024M ${argLine}</argLine>
571564
</configuration>
572565
</plugin>
566+
<plugin>
567+
<groupId>org.sonatype.central</groupId>
568+
<artifactId>central-publishing-maven-plugin</artifactId>
569+
</plugin>
573570
</plugins>
574571
</build>
575572
</profile>

tooling-cli/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
<parent>
77
<groupId>org.opencds.cqf</groupId>
88
<artifactId>tooling-parent</artifactId>
9-
<version>3.9.0-SNAPSHOT</version>
9+
<version>3.9.1-SNAPSHOT</version>
1010
</parent>
1111

1212
<artifactId>tooling-cli</artifactId>
13-
<version>3.9.0-SNAPSHOT</version>
13+
<version>3.9.1-SNAPSHOT</version>
1414
<packaging>jar</packaging>
1515

1616
<description>CQF Tooling CLI</description>
@@ -25,7 +25,7 @@
2525
<dependency>
2626
<groupId>org.opencds.cqf</groupId>
2727
<artifactId>tooling</artifactId>
28-
<version>3.9.0-SNAPSHOT</version>
28+
<version>3.9.1-SNAPSHOT</version>
2929
</dependency>
3030

3131
<dependency>

tooling-ui/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
<parent>
77
<groupId>org.opencds.cqf</groupId>
88
<artifactId>tooling-parent</artifactId>
9-
<version>3.9.0-SNAPSHOT</version>
9+
<version>3.9.1-SNAPSHOT</version>
1010
</parent>
1111

1212
<artifactId>tooling-ui</artifactId>
13-
<version>3.9.0-SNAPSHOT</version>
13+
<version>3.9.1-SNAPSHOT</version>
1414
<packaging>jar</packaging>
1515

1616
<description>CQF Tooling UI</description>
@@ -19,7 +19,7 @@
1919
<dependency>
2020
<groupId>org.opencds.cqf</groupId>
2121
<artifactId>tooling</artifactId>
22-
<version>3.9.0-SNAPSHOT</version>
22+
<version>3.9.1-SNAPSHOT</version>
2323
</dependency>
2424
<dependency>
2525
<groupId>org.openjfx</groupId>

tooling/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
<parent>
77
<groupId>org.opencds.cqf</groupId>
88
<artifactId>tooling-parent</artifactId>
9-
<version>3.9.0-SNAPSHOT</version>
9+
<version>3.9.1-SNAPSHOT</version>
1010
</parent>
1111

1212
<artifactId>tooling</artifactId>
13-
<version>3.9.0-SNAPSHOT</version>
13+
<version>3.9.1-SNAPSHOT</version>
1414
<packaging>jar</packaging>
1515

1616
<dependencies>

0 commit comments

Comments
 (0)