Skip to content

Commit 657e7bd

Browse files
committed
Improve pom-pack.xml
1 parent 290536d commit 657e7bd

File tree

1 file changed

+40
-132
lines changed

1 file changed

+40
-132
lines changed

pom-pack.xml

Lines changed: 40 additions & 132 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@
55
<groupId>com.github.javadev</groupId>
66
<artifactId>underscore</artifactId>
77
<packaging>jar</packaging>
8-
<version>1.36-SNAPSHOT</version>
8+
<version>1.36</version>
99
<name>java port of Underscore.js</name>
1010
<description>The java port of Underscore.js</description>
1111
<url>https://github.com/javadev/underscore-java</url>
1212

1313
<developers>
1414
<developer>
15+
<id>javadev</id>
1516
<name>Valentyn Kolesnikov</name>
1617
</developer>
1718
</developers>
@@ -54,16 +55,12 @@
5455
<source>1.6</source>
5556
<target>1.6</target>
5657
<encoding>UTF-8</encoding>
57-
<compilerArgs>
58-
<arg>-Xlint:unchecked</arg>
59-
<arg>-Xlint:deprecation</arg>
60-
</compilerArgs>
6158
</configuration>
6259
</plugin>
6360
<plugin>
6461
<groupId>org.apache.maven.plugins</groupId>
6562
<artifactId>maven-jar-plugin</artifactId>
66-
<version>3.0.2</version>
63+
<version>2.4</version>
6764
<configuration>
6865
<archive>
6966
<manifest>
@@ -72,63 +69,6 @@
7269
</archive>
7370
</configuration>
7471
</plugin>
75-
<plugin>
76-
<groupId>org.apache.maven.plugins</groupId>
77-
<artifactId>maven-checkstyle-plugin</artifactId>
78-
<version>2.13</version>
79-
<executions>
80-
<execution>
81-
<id>checkstyle</id>
82-
<phase>validate</phase>
83-
<goals>
84-
<goal>check</goal>
85-
</goals>
86-
<configuration>
87-
<configLocation>${basedir}/checkstyle.xml</configLocation>
88-
<includeTestSourceDirectory>true</includeTestSourceDirectory>
89-
<failOnViolation>true</failOnViolation>
90-
</configuration>
91-
</execution>
92-
</executions>
93-
</plugin>
94-
<plugin>
95-
<groupId>com.github.searls</groupId>
96-
<artifactId>jasmine-maven-plugin</artifactId>
97-
<version>1.3.1.4</version>
98-
<executions>
99-
<execution>
100-
<goals>
101-
<goal>test</goal>
102-
</goals>
103-
</execution>
104-
</executions>
105-
</plugin>
106-
<plugin>
107-
<groupId>org.eluder.coveralls</groupId>
108-
<artifactId>coveralls-maven-plugin</artifactId>
109-
<version>3.2.1</version>
110-
<configuration>
111-
<repoToken>DD0C2Rr5T4s4XseQYHUqlsFHcWKY78Lfa</repoToken>
112-
</configuration>
113-
</plugin>
114-
<plugin>
115-
<groupId>org.jacoco</groupId>
116-
<artifactId>jacoco-maven-plugin</artifactId>
117-
<version>0.8.1</version>
118-
<executions>
119-
<execution>
120-
<id>prepare-agent</id>
121-
<goals>
122-
<goal>prepare-agent</goal>
123-
</goals>
124-
</execution>
125-
</executions>
126-
<configuration>
127-
<excludes>
128-
<exclude>**/U$BaseHttpSSLSocketFactory*.class</exclude>
129-
</excludes>
130-
</configuration>
131-
</plugin>
13272
<plugin>
13373
<groupId>com.github.wvengen</groupId>
13474
<artifactId>proguard-maven-plugin</artifactId>
@@ -166,6 +106,7 @@
166106
<option>-keep public class com.github.underscore.lodash.*$Chain { *; }</option>
167107
<option>-keep public class com.github.underscore.lodash.*$ParseException { *; }</option>
168108
<option>-keep public class com.github.underscore.lodash.*$FetchResponse { *; }</option>
109+
<option>-keep public class com.github.underscore.lodash.*$LRUCache { *; }</option>
169110
<option>-keep public class com.github.underscore.lodash.Json$JsonStringBuilder$Step { *; }</option>
170111
<option>-keep public class com.github.underscore.lodash.Xml$XmlStringBuilder$Step { *; }</option>
171112
<option>-keepclassmembers class * { *** newArrayList(); *** newLinkedHashSet(); *** newHashSet(java.lang.Iterable); *** newLinkedHashMap(); }</option>
@@ -177,82 +118,49 @@
177118
</configuration>
178119
</plugin>
179120
<plugin>
180-
<groupId>org.apache.maven.plugins</groupId>
181-
<artifactId>maven-project-info-reports-plugin</artifactId>
182-
<version>2.9</version>
183-
</plugin>
184-
<plugin>
185-
<groupId>org.apache.maven.plugins</groupId>
186-
<artifactId>maven-site-plugin</artifactId>
187-
<version>3.7.1</version>
188-
</plugin>
189-
</plugins>
190-
</build>
191-
<reporting>
192-
<plugins>
193-
<plugin>
194-
<groupId>org.jacoco</groupId>
195-
<artifactId>jacoco-maven-plugin</artifactId>
196-
<version>0.8.1</version>
197-
<configuration>
198-
<excludes>
199-
<exclude>**/U$BaseHttpSSLSocketFactory*.class</exclude>
200-
</excludes>
201-
</configuration>
202-
</plugin>
203-
<plugin>
204-
<groupId>org.apache.maven.plugins</groupId>
205-
<artifactId>maven-surefire-report-plugin</artifactId>
206-
<version>2.18</version>
207-
</plugin>
208-
<plugin>
209-
<groupId>org.apache.maven.plugins</groupId>
210-
<artifactId>maven-jxr-plugin</artifactId>
211-
<version>2.5</version>
121+
<groupId>org.apache.maven.plugins</groupId>
122+
<artifactId>maven-source-plugin</artifactId>
123+
<version>2.4</version>
124+
<executions>
125+
<execution>
126+
<id>attach-sources</id>
127+
<goals>
128+
<goal>jar</goal>
129+
<goal>test-jar</goal>
130+
</goals>
131+
</execution>
132+
</executions>
212133
</plugin>
213134
<plugin>
214135
<groupId>org.apache.maven.plugins</groupId>
215-
<artifactId>maven-checkstyle-plugin</artifactId>
216-
<version>2.13</version>
217-
<configuration>
218-
<configLocation>${basedir}/checkstyle.xml</configLocation>
219-
<includeTestSourceDirectory>true</includeTestSourceDirectory>
220-
</configuration>
136+
<artifactId>maven-javadoc-plugin</artifactId>
137+
<version>3.0.0</version>
138+
<executions>
139+
<execution>
140+
<id>attach-sources</id>
141+
<goals>
142+
<goal>jar</goal>
143+
<goal>test-jar</goal>
144+
</goals>
145+
</execution>
146+
</executions>
221147
</plugin>
222148
<plugin>
223149
<groupId>org.apache.maven.plugins</groupId>
224-
<artifactId>maven-pmd-plugin</artifactId>
225-
<version>3.5</version>
226-
<configuration>
227-
<targetJdk>1.8</targetJdk>
228-
<rulesets>
229-
<ruleset>rulesets/java/basic.xml</ruleset>
230-
<ruleset>rulesets/java/design.xml</ruleset>
231-
<ruleset>rulesets/java/junit.xml</ruleset>
232-
<ruleset>rulesets/java/finalizers.xml</ruleset>
233-
<ruleset>rulesets/java/clone.xml</ruleset>
234-
<ruleset>rulesets/java/unusedcode.xml</ruleset>
235-
<ruleset>rulesets/java/imports.xml</ruleset>
236-
<ruleset>rulesets/java/strings.xml</ruleset>
237-
<ruleset>rulesets/java/braces.xml</ruleset>
238-
<ruleset>rulesets/java/codesize.xml</ruleset>
239-
<ruleset>rulesets/java/coupling.xml</ruleset>
240-
<ruleset>rulesets/java/strictexception.xml</ruleset>
241-
</rulesets>
242-
</configuration>
243-
</plugin>
244-
<plugin>
245-
<groupId>org.codehaus.mojo</groupId>
246-
<artifactId>findbugs-maven-plugin</artifactId>
247-
<version>3.0.3</version>
248-
</plugin>
249-
<plugin>
250-
<groupId>org.codehaus.mojo</groupId>
251-
<artifactId>taglist-maven-plugin</artifactId>
252-
<version>2.4</version>
150+
<artifactId>maven-gpg-plugin</artifactId>
151+
<version>1.4</version>
152+
<executions>
153+
<execution>
154+
<id>sign-artifacts</id>
155+
<phase>verify</phase>
156+
<goals>
157+
<goal>sign</goal>
158+
</goals>
159+
</execution>
160+
</executions>
253161
</plugin>
254162
</plugins>
255-
</reporting>
163+
</build>
256164
<dependencies>
257165
<dependency>
258166
<groupId>junit</groupId>
@@ -267,5 +175,5 @@
267175
<scope>test</scope>
268176
</dependency>
269177
</dependencies>
270-
178+
271179
</project>

0 commit comments

Comments
 (0)