Skip to content

Commit 5f25fad

Browse files
authored
Merge pull request #27 from Bandwidth/SWI-6631
SWI-6631 Add Build Plugins
2 parents 512cfe7 + 1ea9c3a commit 5f25fad

File tree

1 file changed

+108
-0
lines changed

1 file changed

+108
-0
lines changed

pom.xml

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,114 @@
4040
<developerConnection>scm:git:ssh://github.com/Bandwidth/numbers-java-sdk.git</developerConnection>
4141
<url>https://github.com/Bandwidth/numbers-java-sdk/tree/master</url>
4242
</scm>
43+
<build>
44+
<plugins>
45+
<plugin>
46+
<groupId>org.apache.maven.plugins</groupId>
47+
<artifactId>maven-compiler-plugin</artifactId>
48+
<version>2.3.2</version>
49+
<configuration>
50+
<source>1.8</source>
51+
<target>1.8</target>
52+
</configuration>
53+
</plugin>
54+
<plugin>
55+
<artifactId>maven-assembly-plugin</artifactId>
56+
<version>2.3</version>
57+
<configuration>
58+
<descriptorRefs>
59+
<descriptorRef>jar-with-dependencies</descriptorRef>
60+
</descriptorRefs>
61+
</configuration>
62+
<executions>
63+
<execution>
64+
<id>make-assembly</id>
65+
<!-- this is used for inheritance merges -->
66+
<phase>package</phase>
67+
<!-- bind to the packaging phase -->
68+
<goals>
69+
<goal>single</goal>
70+
</goals>
71+
</execution>
72+
</executions>
73+
</plugin>
74+
<plugin>
75+
<groupId>org.apache.maven.plugins</groupId>
76+
<artifactId>maven-source-plugin</artifactId>
77+
<version>2.2.1</version>
78+
<executions>
79+
<execution>
80+
<id>attach-sources</id>
81+
<goals>
82+
<goal>jar-no-fork</goal>
83+
</goals>
84+
</execution>
85+
</executions>
86+
</plugin>
87+
<plugin>
88+
<groupId>org.apache.maven.plugins</groupId>
89+
<artifactId>maven-javadoc-plugin</artifactId>
90+
<version>2.9.1</version>
91+
<executions>
92+
<execution>
93+
<id>attach-javadocs</id>
94+
<goals>
95+
<goal>jar</goal>
96+
</goals>
97+
</execution>
98+
</executions>
99+
</plugin>
100+
<plugin>
101+
<groupId>org.apache.maven.plugins</groupId>
102+
<artifactId>maven-gpg-plugin</artifactId>
103+
<version>3.0.1</version>
104+
<executions>
105+
<execution>
106+
<id>sign-artifacts</id>
107+
<phase>verify</phase>
108+
<goals>
109+
<goal>sign</goal>
110+
</goals>
111+
</execution>
112+
</executions>
113+
<configuration>
114+
<gpgArguments>
115+
<arg>--pinentry-mode</arg>
116+
<arg>loopback</arg>
117+
</gpgArguments>
118+
</configuration>
119+
</plugin>
120+
<plugin>
121+
<groupId>org.sonatype.plugins</groupId>
122+
<artifactId>nexus-staging-maven-plugin</artifactId>
123+
<version>1.7.0</version>
124+
<extensions>true</extensions>
125+
<configuration>
126+
<serverId>ossrh</serverId>
127+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
128+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
129+
</configuration>
130+
</plugin>
131+
<plugin>
132+
<groupId>org.apache.maven.plugins</groupId>
133+
<artifactId>maven-jar-plugin</artifactId>
134+
<configuration>
135+
<archive>
136+
<manifest>
137+
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
138+
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
139+
</manifest>
140+
</archive>
141+
</configuration>
142+
</plugin>
143+
<plugin>
144+
<groupId>org.apache.maven.plugins</groupId>
145+
<artifactId>maven-surefire-plugin</artifactId>
146+
<!-- JUnit 5 requires Surefire version 2.22.0 or higher -->
147+
<version>2.22.0</version>
148+
</plugin>
149+
</plugins>
150+
</build>
43151
<dependencies>
44152
<dependency>
45153
<groupId>com.fasterxml.jackson.datatype</groupId>

0 commit comments

Comments
 (0)