Skip to content

Commit bfa8c83

Browse files
Merge pull request #10 from wavesplatform/pub-fix
Publish fix
2 parents 0671d5a + 15caac3 commit bfa8c83

File tree

1 file changed

+45
-115
lines changed

1 file changed

+45
-115
lines changed

pom.xml

Lines changed: 45 additions & 115 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,17 @@
4545

4646
<build>
4747
<plugins>
48+
<plugin>
49+
<groupId>org.sonatype.plugins</groupId>
50+
<artifactId>nexus-staging-maven-plugin</artifactId>
51+
<version>1.6.8</version>
52+
<extensions>true</extensions>
53+
<configuration>
54+
<serverId>ossrh</serverId>
55+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
56+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
57+
</configuration>
58+
</plugin>
4859
<plugin>
4960
<groupId>org.apache.maven.plugins</groupId>
5061
<artifactId>maven-compiler-plugin</artifactId>
@@ -54,6 +65,40 @@
5465
<target>8</target>
5566
</configuration>
5667
</plugin>
68+
<plugin>
69+
<groupId>org.apache.maven.plugins</groupId>
70+
<artifactId>maven-source-plugin</artifactId>
71+
<version>3.1.0</version>
72+
<executions>
73+
<execution>
74+
<id>attach-sources</id>
75+
<goals>
76+
<goal>jar</goal>
77+
</goals>
78+
</execution>
79+
</executions>
80+
</plugin>
81+
<plugin>
82+
<groupId>org.apache.maven.plugins</groupId>
83+
<artifactId>maven-gpg-plugin</artifactId>
84+
<version>1.6</version>
85+
<executions>
86+
<execution>
87+
<id>sign-artifacts</id>
88+
<phase>verify</phase>
89+
<goals>
90+
<goal>sign</goal>
91+
</goals>
92+
</execution>
93+
</executions>
94+
<configuration>
95+
<!-- Prevent `gpg` from using pinentry programs -->
96+
<gpgArguments>
97+
<arg>--pinentry-mode</arg>
98+
<arg>loopback</arg>
99+
</gpgArguments>
100+
</configuration>
101+
</plugin>
57102
<plugin>
58103
<groupId>org.apache.maven.plugins</groupId>
59104
<artifactId>maven-surefire-plugin</artifactId>
@@ -78,19 +123,6 @@
78123
</archive>
79124
</configuration>
80125
</plugin>
81-
<plugin>
82-
<groupId>org.apache.maven.plugins</groupId>
83-
<artifactId>maven-source-plugin</artifactId>
84-
<version>3.1.0</version>
85-
<executions>
86-
<execution>
87-
<id>attach-sources</id>
88-
<goals>
89-
<goal>jar</goal>
90-
</goals>
91-
</execution>
92-
</executions>
93-
</plugin>
94126
<plugin>
95127
<groupId>org.apache.maven.plugins</groupId>
96128
<artifactId>maven-javadoc-plugin</artifactId>
@@ -107,72 +139,6 @@
107139
<source>8</source>
108140
</configuration>
109141
</plugin>
110-
<plugin>
111-
<artifactId>maven-deploy-plugin</artifactId>
112-
<version>2.8.2</version>
113-
<executions>
114-
<execution>
115-
<id>deploy</id>
116-
<phase>deploy</phase>
117-
<goals>
118-
<goal>deploy</goal>
119-
</goals>
120-
</execution>
121-
</executions>
122-
</plugin>
123-
<plugin>
124-
<groupId>org.apache.maven.plugins</groupId>
125-
<artifactId>maven-release-plugin</artifactId>
126-
<version>2.5.3</version>
127-
<configuration>
128-
<localCheckout>true</localCheckout>
129-
<pushChanges>false</pushChanges>
130-
<mavenExecutorId>forked-path</mavenExecutorId>
131-
<arguments>-Dgpg.passphrase=${gpg.passphrase}</arguments>
132-
</configuration>
133-
<dependencies>
134-
<dependency>
135-
<groupId>org.apache.maven.scm</groupId>
136-
<artifactId>maven-scm-provider-gitexe</artifactId>
137-
<version>1.9.5</version>
138-
</dependency>
139-
</dependencies>
140-
</plugin>
141-
<plugin>
142-
<groupId>org.sonatype.plugins</groupId>
143-
<artifactId>nexus-staging-maven-plugin</artifactId>
144-
<version>1.6.8</version>
145-
<extensions>true</extensions>
146-
<configuration>
147-
<serverId>ossrh</serverId>
148-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
149-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
150-
</configuration>
151-
</plugin>
152-
<plugin>
153-
<groupId>org.codehaus.mojo</groupId>
154-
<artifactId>flatten-maven-plugin</artifactId>
155-
<version>1.2.2</version>
156-
<configuration>
157-
<flattenMode>ossrh</flattenMode>
158-
</configuration>
159-
<executions>
160-
<execution>
161-
<id>flatten</id>
162-
<phase>process-resources</phase>
163-
<goals>
164-
<goal>flatten</goal>
165-
</goals>
166-
</execution>
167-
<execution>
168-
<id>flatten.clean</id>
169-
<phase>clean</phase>
170-
<goals>
171-
<goal>clean</goal>
172-
</goals>
173-
</execution>
174-
</executions>
175-
</plugin>
176142
</plugins>
177143
</build>
178144

@@ -187,42 +153,6 @@
187153
</repository>
188154
</distributionManagement>
189155

190-
<profiles>
191-
<profile>
192-
<id>release</id>
193-
<activation>
194-
<property>
195-
<name>gpg.passphrase</name>
196-
</property>
197-
</activation>
198-
<build>
199-
<plugins>
200-
<plugin>
201-
<groupId>org.apache.maven.plugins</groupId>
202-
<artifactId>maven-gpg-plugin</artifactId>
203-
<version>1.6</version>
204-
<configuration>
205-
<!-- Prevent `gpg` from using pinentry programs -->
206-
<gpgArguments>
207-
<arg>--pinentry-mode</arg>
208-
<arg>loopback</arg>
209-
</gpgArguments>
210-
</configuration>
211-
<executions>
212-
<execution>
213-
<id>sign-artifacts</id>
214-
<phase>verify</phase>
215-
<goals>
216-
<goal>sign</goal>
217-
</goals>
218-
</execution>
219-
</executions>
220-
</plugin>
221-
</plugins>
222-
</build>
223-
</profile>
224-
</profiles>
225-
226156
<dependencies>
227157
<!-- crypto -->
228158
<dependency>

0 commit comments

Comments
 (0)