Skip to content

Commit 40b8ccb

Browse files
authored
revert to ossrh (#245)
1 parent 831c122 commit 40b8ccb

File tree

3 files changed

+4
-101
lines changed

3 files changed

+4
-101
lines changed

.github/workflows/publish-maven-package.yml

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,7 @@ on:
66
- main
77

88
jobs:
9-
# publish:
10-
# runs-on: ubuntu-latest
11-
# environment: deploy
12-
# steps:
13-
# - uses: actions/checkout@v4
14-
# - name: Set up Maven Central Respository
15-
# uses: actions/setup-java@v4
16-
# with:
17-
# distribution: temurin
18-
# java-version: 11
19-
# server-id: ossrh
20-
# server-username: OSSRH_USERNAME
21-
# server-password: OSSRH_PASSWORD
22-
# gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
23-
# gpg-passphrase: GPG_PASSPHRASE
24-
# - name: ⭐ Publish to Maven Central ⭐
25-
# run: mvn deploy --batch-mode -P publish -DskipTests=true
26-
# env:
27-
# OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
28-
# OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
29-
# GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
30-
release:
9+
publish:
3110
runs-on: ubuntu-latest
3211
environment: release
3312
steps:
@@ -37,13 +16,13 @@ jobs:
3716
with:
3817
distribution: temurin
3918
java-version: 11
40-
server-id: central
19+
server-id: ossrh
4120
server-username: MAVEN_USERNAME
4221
server-password: MAVEN_PASSWORD
4322
gpg-private-key: ${{ secrets.GPG_SIGNING_KEY }}
4423
gpg-passphrase: MAVEN_GPG_PASSPHRASE
4524
- name: ⭐ Publish to Maven Central ⭐
46-
run: mvn deploy --batch-mode -P release -DskipTests=true
25+
run: mvn deploy --batch-mode -P publish -DskipTests=true
4726
env:
4827
MAVEN_USERNAME: ${{ secrets.CENTRAL_TOKEN_USERNAME }}
4928
MAVEN_PASSWORD: ${{ secrets.CENTRAL_TOKEN_PASSWORD }}

Changelog.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# Changelog
22

33
## AMP HTML Validator 1.0.43
4-
- migrate to central-publishing-maven-plugin for publishing to maven central
5-
- switch to token auth
64
- update actions/setup-java action from v3 to v4
75
- upgrade build-helper-maven-plugin from 3.5.0 to 3.6.0
86
- upgrade com.fasterxml.jackson from 2.16.1 to 2.18.1
@@ -24,6 +22,7 @@
2422
- upgrade maven-source-plugin from 3.3.0 to 3.3.1
2523
- upgrade maven-surefire-plugin from 3.2.5 to 3.5.2
2624
- upgrade mockito-core from 5.10.0 to 5.14.2
25+
- upgrade nexus-staging-maven-plugin from 1.6.13 to 1.7.0
2726
- upgrade protobuf-java from 3.25.2 to 3.25.5
2827
- upgrade puppycrawl.tools.checkstyle from 10.12.7 to 10.20.1
2928
- upgrade spotbugs-maven-plugin from 4.8.3.0 to 4.8.6.6

pom.xml

Lines changed: 0 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -617,81 +617,6 @@
617617
</repository>
618618
</distributionManagement>
619619
</profile>
620-
621-
<profile>
622-
<id>release</id>
623-
<build>
624-
<plugins>
625-
<plugin>
626-
<groupId>org.sonatype.central</groupId>
627-
<artifactId>central-publishing-maven-plugin</artifactId>
628-
<version>0.6.0</version>
629-
<extensions>true</extensions>
630-
<configuration>
631-
<publishingServerId>central</publishingServerId>
632-
<tokenAuth>true</tokenAuth>
633-
<autoPublish>true</autoPublish>
634-
</configuration>
635-
</plugin>
636-
<plugin>
637-
<groupId>org.apache.maven.plugins</groupId>
638-
<artifactId>maven-source-plugin</artifactId>
639-
<version>${maven-source-plugin.version}</version>
640-
<executions>
641-
<execution>
642-
<id>attach-sources</id>
643-
<phase>package</phase>
644-
<goals>
645-
<goal>jar-no-fork</goal>
646-
</goals>
647-
</execution>
648-
</executions>
649-
</plugin>
650-
<plugin>
651-
<groupId>org.apache.maven.plugins</groupId>
652-
<artifactId>maven-javadoc-plugin</artifactId>
653-
<version>${maven-javadoc-plugin.version}</version>
654-
<configuration>
655-
<sourceFileExcludes>
656-
<sourceFileExclude>dev/amp/validator/ValidatorProtos.java</sourceFileExclude>
657-
</sourceFileExcludes>
658-
</configuration>
659-
<executions>
660-
<execution>
661-
<id>attach-javadocs</id>
662-
<phase>package</phase>
663-
<goals>
664-
<goal>jar</goal>
665-
</goals>
666-
</execution>
667-
</executions>
668-
</plugin>
669-
<plugin>
670-
<groupId>org.apache.maven.plugins</groupId>
671-
<artifactId>maven-gpg-plugin</artifactId>
672-
<version>${maven-gpg-plugin.version}</version>
673-
<executions>
674-
<execution>
675-
<id>sign-artifacts</id>
676-
<phase>verify</phase>
677-
<goals>
678-
<goal>sign</goal>
679-
</goals>
680-
</execution>
681-
</executions>
682-
<configuration>
683-
<!-- Specify a pair of arguments to gpg to change it's pinentry-mode to 'loopback'
684-
Once you've done this, it will honor the gpg.passphrase value, either from an
685-
environment variable or from a user property.-->
686-
<gpgArguments>
687-
<arg>--pinentry-mode</arg>
688-
<arg>loopback</arg>
689-
</gpgArguments>
690-
</configuration>
691-
</plugin>
692-
</plugins>
693-
</build>
694-
</profile>
695620
</profiles>
696621

697622
<dependencies>

0 commit comments

Comments
 (0)