Skip to content

Commit b025171

Browse files
committed
Move central-publishing-maven-plugin to correct place
1 parent 5096645 commit b025171

File tree

3 files changed

+14
-21
lines changed

3 files changed

+14
-21
lines changed

.github/workflows/pre-release-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
server-password: MAVEN_PASSWORD
4444
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
4545
gpg-passphrase: MAVEN_GPG_PASSPHRASE
46-
- name: Deploy pre-release version to the Maven Central Repository
46+
- name: Deploy pre-release version to Maven Central Repository
4747
run: |
4848
pre_release_version=${{ github.event.release.tag_name }}
4949
echo Pre-release version $pre_release_version

.github/workflows/release-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
-DreleaseVersion=\${parsedVersion.majorVersion}.\${parsedVersion.minorVersion}.\${parsedVersion.incrementalVersion} \
4545
-Darguments="-DskipTests=true"
4646
echo release_tag=$(git describe --tags --abbrev=0) >> $GITHUB_OUTPUT
47-
- name: Perform release
47+
- name: Perform release to GitHub Packages
4848
run: mvn -B release:perform -Pdeploy2Github -Darguments="-DskipTests=true -Pdeploy2Github"
4949
env:
5050
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -59,7 +59,7 @@ jobs:
5959
server-password: MAVEN_PASSWORD
6060
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
6161
gpg-passphrase: MAVEN_GPG_PASSPHRASE
62-
- name: Deploy release version to the Maven Central Repository
62+
- name: Deploy release version to Maven Central Repository
6363
run: |
6464
release_version=$(echo ${{ steps.prepare_release.outputs.release_tag }} | sed "s/release-//")
6565
echo release version $release_version

pom.xml

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
1+
<project xmlns="http://maven.apache.org/POM/4.0.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24
<modelVersion>4.0.0</modelVersion>
35

46
<groupId>io.scalecube</groupId>
57
<artifactId>scalecube-parent</artifactId>
6-
<version>0.3.8</version>
8+
<version>0.3.2-SNAPSHOT</version>
79
<packaging>pom</packaging>
810
<name>ScaleCube parent project</name>
911

@@ -25,7 +27,7 @@
2527
<connection>scm:git:https://github.com/scalecube/${project.artifactId}.git</connection>
2628
<developerConnection>scm:git:https://github.com/scalecube/${project.artifactId}.git
2729
</developerConnection>
28-
<tag>release-0.3.8</tag>
30+
<tag>HEAD</tag>
2931
</scm>
3032

3133
<prerequisites>
@@ -48,7 +50,7 @@
4850
<maven-source-plugin.version>3.3.0</maven-source-plugin.version>
4951
<maven-javadoc-plugin.version>3.6.0</maven-javadoc-plugin.version>
5052
<maven-surefire-plugin.version>3.2.5</maven-surefire-plugin.version>
51-
<maven-release-plugin.version>3.0.1</maven-release-plugin.version>
53+
<maven-release-plugin.version>3.1.1</maven-release-plugin.version>
5254
<maven-enforcer-plugin.version>3.4.1</maven-enforcer-plugin.version>
5355
<maven-checkstyle-plugin.version>3.3.0</maven-checkstyle-plugin.version>
5456
<maven-jar-plugin.version>3.3.0</maven-jar-plugin.version>
@@ -175,7 +177,7 @@
175177
<message>The reactor is not valid</message>
176178
<ignoreModuleDependencies>true</ignoreModuleDependencies>
177179
</reactorModuleConvergence>
178-
<dependencyConvergence />
180+
<dependencyConvergence/>
179181
</rules>
180182
</configuration>
181183
</execution>
@@ -273,6 +275,10 @@
273275
<plugin>
274276
<artifactId>maven-surefire-plugin</artifactId>
275277
</plugin>
278+
<plugin>
279+
<groupId>org.sonatype.central</groupId>
280+
<artifactId>central-publishing-maven-plugin</artifactId>
281+
</plugin>
276282
</plugins>
277283
</build>
278284

@@ -296,19 +302,6 @@
296302
<url>https://central.sonatype.com/api/v1/publisher/</url>
297303
</repository>
298304
</distributionManagement>
299-
<build>
300-
<plugins>
301-
<plugin>
302-
<artifactId>maven-source-plugin</artifactId>
303-
</plugin>
304-
<plugin>
305-
<artifactId>maven-javadoc-plugin</artifactId>
306-
</plugin>
307-
<plugin>
308-
<artifactId>maven-gpg-plugin</artifactId>
309-
</plugin>
310-
</plugins>
311-
</build>
312305
</profile>
313306
</profiles>
314307

0 commit comments

Comments
 (0)