forked from amaembo/streamex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpom.xml
280 lines (272 loc) · 9.82 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>one.util</groupId>
<artifactId>streamex</artifactId>
<version>0.6.5-SNAPSHOT</version>
<packaging>jar</packaging>
<name>StreamEx</name>
<description>Enhancing Java 8 Streams</description>
<url>https://github.com/amaembo/streamex</url>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0</url>
<distribution>repo</distribution>
</license>
</licenses>
<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.package>one.util.streamex</project.package>
<project.package.path>one/util/streamex</project.package.path>
</properties>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
</dependencies>
<developers>
<developer>
<name>Tagir Valeev</name>
<email>[email protected]</email>
</developer>
</developers>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<compilerArgs>
<arg>-Xlint:all</arg>
</compilerArgs>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.4</version>
<executions>
<execution>
<!-- This execution used just to run javadoc with doclint and
fail on any errors -->
<id>verify-javadocs</id>
<phase>package</phase>
<goals>
<goal>javadoc</goal>
</goals>
<configuration>
<quiet>true</quiet>
</configuration>
</execution>
<execution>
<!-- This is actualy javadoc build. The doclint cannot be used
here as it fails on JDK sources -->
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<sourcepath>${project.build.sourceDirectory};${project.build.directory}/jdk</sourcepath>
<excludePackageNames>java.util.stream</excludePackageNames>
<additionalparam>-Xdoclint:none</additionalparam>
<noqualifier>all</noqualifier>
<quiet>true</quiet>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<!-- Unpack java.util.stream package from JDK source to inherit
the documentation from it -->
<id>prepare</id>
<phase>prepare-package</phase>
<configuration>
<target>
<available property="src.zip" file="${java.home}/../src.zip"
value="${java.home}/../src.zip" />
<available property="src.zip" file="${java.home}/src.zip"
value="${java.home}/src.zip" />
<unzip src="${src.zip}" dest="${project.build.directory}/jdk">
<patternset>
<include name="java/util/stream/**/*.java" />
</patternset>
</unzip>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
<execution>
<!-- Change the S generic type in StreamEx/EntryStream documentation
to the appropriate type -->
<id>fix</id>
<phase>package</phase>
<configuration>
<target>
<property name="token.SPLTR"><![CDATA[SPLTR]]></property>
<property name="token.SpliteratorT"><![CDATA[Spliterator<T>]]></property>
<property name="token.SpliteratorKV"><![CDATA[Spliterator<Map.Entry<K, V>>]]></property>
<replace
file="${project.build.directory}/apidocs/${project.package.path}/EntryStream.html"
token="${token.SPLTR}" value="${token.SpliteratorKV}" />
<replace
file="${project.build.directory}/apidocs/${project.package.path}/StreamEx.html"
token="${token.SPLTR}" value="${token.SpliteratorT}" />
<jar
destfile="${project.build.directory}/${project.build.finalName}-javadoc.jar"
update="true">
<fileset dir="${project.build.directory}/apidocs"
includes="${project.package.path}/EntryStream.html" />
<fileset dir="${project.build.directory}/apidocs"
includes="${project.package.path}/StreamEx.html" />
</jar>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.4.0</version>
<extensions>true</extensions>
<executions>
<execution>
<id>bundle-manifest</id>
<phase>process-classes</phase>
<goals>
<goal>manifest</goal>
</goals>
</execution>
</executions>
<configuration>
<instructions>
<Bundle-SymbolicName>${project.package}</Bundle-SymbolicName>
<Bundle-Name>${project.name}</Bundle-Name>
<Export-Package>${project.package}</Export-Package>
</instructions>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.4</version>
<configuration>
<archive>
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.6</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.7.201606060606</version>
<executions>
<execution>
<id>default-prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>default-report</id>
<phase>prepare-package</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
<execution>
<id>default-check</id>
<goals>
<goal>check</goal>
</goals>
<configuration>
<rules>
<rule implementation="org.jacoco.maven.RuleConfiguration">
<element>BUNDLE</element>
<limits>
<limit implementation="org.jacoco.report.check.Limit">
<counter>COMPLEXITY</counter>
<value>COVEREDRATIO</value>
<minimum>0.90</minimum>
</limit>
</limits>
</rule>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eluder.coveralls</groupId>
<artifactId>coveralls-maven-plugin</artifactId>
<version>4.0.0</version>
</plugin>
</plugins>
</build>
<scm>
<connection>scm:git:https://github.com/amaembo/streamex.git</connection>
<developerConnection>scm:git:https://github.com/amaembo/streamex.git</developerConnection>
<url>https://github.com/amaembo/streamex.git</url>
</scm>
</project>