Skip to content

Commit e5db1d5

Browse files
authored
Merge pull request #4 from Lockstep-Network/MavenCentralRepoChanges
Correction to pom.xml properties
2 parents 9ddc495 + 5b0b35f commit e5db1d5

File tree

1 file changed

+63
-28
lines changed

1 file changed

+63
-28
lines changed

pom.xml

Lines changed: 63 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@
2828
</dependency>
2929

3030
</dependencies>
31+
32+
<distributionManagement>
33+
<snapshotRepository>
34+
<id>ossrh</id>
35+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
36+
</snapshotRepository>
37+
</distributionManagement>
38+
3139
<build>
3240
<plugins>
3341
<plugin>
@@ -41,35 +49,62 @@
4149
<autoReleaseAfterClose>true</autoReleaseAfterClose>
4250
</configuration>
4351
</plugin>
44-
<plugin>
45-
<groupId>org.apache.maven.plugins</groupId>
46-
<artifactId>maven-gpg-plugin</artifactId>
47-
<version>1.6</version>
48-
<executions>
49-
<execution>
50-
<id>sign-artifacts</id>
51-
<phase>verify</phase>
52-
<goals>
53-
<goal>sign</goal>
54-
</goals>
55-
</execution>
56-
</executions>
57-
<configuration>
58-
<gpgArguments>
59-
<arg>--pinentry-mode</arg>
60-
<arg>loopback</arg>
61-
</gpgArguments>
62-
</configuration>
63-
</plugin>
6452
</plugins>
6553
</build>
6654
<profiles>
67-
<profile>
68-
<id>release</id>
69-
<build>
70-
<plugins>
71-
</plugins>
72-
</build>
73-
</profile>
74-
</profiles>
55+
<profile>
56+
<id>release</id>
57+
<build>
58+
<plugins>
59+
<plugin>
60+
<groupId>org.apache.maven.plugins</groupId>
61+
<artifactId>maven-source-plugin</artifactId>
62+
<version>3.2.1</version>
63+
<executions>
64+
<execution>
65+
<id>attach-sources</id>
66+
<goals>
67+
<goal>jar-no-fork</goal>
68+
</goals>
69+
</execution>
70+
</executions>
71+
</plugin>
72+
<plugin>
73+
<groupId>org.apache.maven.plugins</groupId>
74+
<artifactId>maven-javadoc-plugin</artifactId>
75+
<version>3.3.1</version>
76+
<executions>
77+
<execution>
78+
<id>attach-javadocs</id>
79+
<goals>
80+
<goal>jar</goal>
81+
</goals>
82+
</execution>
83+
</executions>
84+
</plugin>
85+
<plugin>
86+
<groupId>org.apache.maven.plugins</groupId>
87+
<artifactId>maven-gpg-plugin</artifactId>
88+
<version>3.0.1</version>
89+
<executions>
90+
<execution>
91+
<id>sign-artifacts</id>
92+
<phase>verify</phase>
93+
<goals>
94+
<goal>sign</goal>
95+
</goals>
96+
</execution>
97+
</executions>
98+
<configuration>
99+
<!-- Prevent gpg from using pinentry programs -->
100+
<gpgArguments>
101+
<arg>--pinentry-mode</arg>
102+
<arg>loopback</arg>
103+
</gpgArguments>
104+
</configuration>
105+
</plugin>
106+
</plugins>
107+
</build>
108+
</profile>
109+
</profiles>
75110
</project>

0 commit comments

Comments
 (0)