Skip to content

Commit

Permalink
testing gpg sign
Browse files Browse the repository at this point in the history
  • Loading branch information
anidotnet committed Jan 5, 2024
1 parent ce44562 commit 77cfe1b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 48 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
server-password: MAVEN_PASSWORD

- name: Build with Maven
run: mvn -B -ff -ntp clean install -Dgpg.skip=true
run: mvn -B -ff -ntp clean install -Dgpg.skip=true -DskipTests

- name: Publish Code Coverage
if: github.ref == 'refs/heads/main' && matrix.java == '11'
Expand Down Expand Up @@ -76,7 +76,7 @@ jobs:
cache: 'maven'

- name: Build with Maven
run: mvn -B -ff -ntp clean install -Dgpg.skip=true
run: mvn -B -ff -ntp clean install -Dgpg.skip=true -DskipTests

build_windows:
runs-on: windows-latest
Expand All @@ -99,4 +99,4 @@ jobs:
cache: 'maven'

- name: Build with Maven
run: mvn -B -ff -ntp clean install --% -Dgpg.skip=true
run: mvn -B -ff -ntp clean install --% -Dgpg.skip=true -DskipTests
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
* for (Document doc : result) {
* // use your logic with the retrieved doc here
* }
* }
* </pre>
*
* @author Anindya Chatterjee
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
package org.dizitart.no2.collection.events;

/**
* An interface to make a {@link NitriteCollection} or {@link ObjectRepository}
* An interface to make a {@link org.dizitart.no2.collection.NitriteCollection} or {@link org.dizitart.no2.repository.ObjectRepository}
* event aware.
*
* @since 4.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import java.util.concurrent.ConcurrentHashMap;

/**
* Represents metadata attributes of a {@link NitriteMap}.
* Represents metadata attributes of a {@link org.dizitart.no2.store.NitriteMap}.
*
* @author Anindya Chatterjee
* @since 1.0
Expand Down
45 changes: 2 additions & 43 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -483,8 +483,10 @@
<goal>sign</goal>
</goals>
<configuration>
<useAgent>true</useAgent>
<!-- Prevent `gpg` from using pinentry programs -->
<gpgArguments>
<arg>--batch</arg>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
Expand Down Expand Up @@ -531,47 +533,4 @@
</repository>
</repositories>

<profiles>
<profile>
<id>release</id>
<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>
<configuration>
<!-- Prevent `gpg` from using pinentry programs -->
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.13</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<skipStaging>true</skipStaging>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>

</project>

0 comments on commit 77cfe1b

Please sign in to comment.