Skip to content

Commit 1b032b5

Browse files
Merge pull request #58 from data-integrations/cherry-pick-oss-release
[Cherry-pick] feat: Add required metadata for Maven Central publishing
2 parents da78f70 + 675ff1a commit 1b032b5

File tree

1 file changed

+70
-0
lines changed

1 file changed

+70
-0
lines changed

pom.xml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,76 @@
334334
</plugins>
335335
</build>
336336
</profile>
337+
338+
<!-- Profile for release. Includes building of source and javadoc jars. -->
339+
<profile>
340+
<id>release</id>
341+
<build>
342+
<plugins>
343+
<!-- GPG signature -->
344+
<plugin>
345+
<groupId>org.apache.maven.plugins</groupId>
346+
<artifactId>maven-gpg-plugin</artifactId>
347+
<version>1.5</version>
348+
<configuration>
349+
<passphrase>${gpg.passphrase}</passphrase>
350+
<useAgent>${gpg.useagent}</useAgent>
351+
</configuration>
352+
<executions>
353+
<execution>
354+
<goals>
355+
<goal>sign</goal>
356+
</goals>
357+
</execution>
358+
</executions>
359+
</plugin>
360+
<!-- Source JAR -->
361+
<plugin>
362+
<groupId>org.apache.maven.plugins</groupId>
363+
<artifactId>maven-source-plugin</artifactId>
364+
<version>2.2.1</version>
365+
<configuration>
366+
<excludeResources>true</excludeResources>
367+
</configuration>
368+
<executions>
369+
<execution>
370+
<id>attach-sources</id>
371+
<phase>package</phase>
372+
<goals>
373+
<goal>jar-no-fork</goal>
374+
</goals>
375+
</execution>
376+
</executions>
377+
</plugin>
378+
<!-- Javadoc jar -->
379+
<plugin>
380+
<groupId>org.apache.maven.plugins</groupId>
381+
<artifactId>maven-javadoc-plugin</artifactId>
382+
<version>2.9.1</version>
383+
<configuration>
384+
<additionalparam>-Xdoclint:none</additionalparam>
385+
<failOnError>false</failOnError>
386+
<links>
387+
<link>http://download.oracle.com/javase/${jee.version}/docs/api/</link>
388+
</links>
389+
<doctitle>${project.name} ${project.version}</doctitle>
390+
<bottom>
391+
<![CDATA[Copyright &#169; {currentYear} <a href="http://cdap.io" target="_blank">CDAP</a> Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank">Apache License, Version 2.0</a>.]]>
392+
</bottom>
393+
</configuration>
394+
<executions>
395+
<execution>
396+
<id>attach-javadoc</id>
397+
<phase>package</phase>
398+
<goals>
399+
<goal>jar</goal>
400+
</goals>
401+
</execution>
402+
</executions>
403+
</plugin>
404+
</plugins>
405+
</build>
406+
</profile>
337407
</profiles>
338408

339409
</project>

0 commit comments

Comments
 (0)