Browse Source

Revert Gpg plugin changes (#3888)

pull/3890/head
mandlil 5 months ago
committed by GitHub
parent
commit
c87e522a58
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
2 changed files with 31 additions and 23 deletions
  1. +1
    -1
      .github/workflows/java-unit-test.yml
  2. +30
    -22
      java/pom.xml

+ 1
- 1
.github/workflows/java-unit-test.yml View File

@ -28,7 +28,7 @@ jobs:
# it's safe to remove the first line entirely. # it's safe to remove the first line entirely.
- name: Test Build Tools with Maven - name: Test Build Tools with Maven
run: | run: |
mvn install -P github-actions -DskipTests=true -Dgpg.skip=true -Dmaven.javadoc.skip=true -B -V
mvn install -P github-actions -DskipTests=true -Dmaven.javadoc.skip=true -B -V
mvn -P github-actions test mvn -P github-actions test
- name: Test Java API with Ant - name: Test Java API with Ant
run: | run: |


+ 30
- 22
java/pom.xml View File

@ -167,28 +167,6 @@
<encoding>UTF-8</encoding> <encoding>UTF-8</encoding>
</configuration> </configuration>
</plugin> </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
<configuration>
<gpgArguments>
<arg>--batch</arg>
<arg>--yes</arg>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
</plugin>
<plugin> <plugin>
<groupId>org.sonatype.central</groupId> <groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId> <artifactId>central-publishing-maven-plugin</artifactId>
@ -201,6 +179,36 @@
</plugins> </plugins>
</build> </build>
<profiles>
<profile>
<id>release-sign-artifacts</id>
<activation>
<property>
<name>performRelease</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<!-- Until 08. Dec 2016, this pom worked with maven-release-plugin at 2.2.1 <!-- Until 08. Dec 2016, this pom worked with maven-release-plugin at 2.2.1
and default SCM dependencies. On 11. Jan, 2017 that was no longer the and default SCM dependencies. On 11. Jan, 2017 that was no longer the
case, presumably because the default SCM version changed (cannot find case, presumably because the default SCM version changed (cannot find


Loading…
Cancel
Save