Skip to content

Commit b58c786

Browse files
authored
build: Attach sources and javadoc jars on package (#80)
Bound to the package phase so every `mvn verify` / CI build catches javadoc lint failures before any release tag is cut. Also fixes a broken @link to Request#parsed(Class) (the method is asPojo(Class)) so default doclint passes.
1 parent e2ecd93 commit b58c786

2 files changed

Lines changed: 29 additions & 1 deletion

File tree

pom.xml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,34 @@
215215
<release>25</release>
216216
</configuration>
217217
</plugin>
218+
<plugin>
219+
<groupId>org.apache.maven.plugins</groupId>
220+
<artifactId>maven-source-plugin</artifactId>
221+
<version>3.4.0</version>
222+
<executions>
223+
<execution>
224+
<id>attach-sources</id>
225+
<goals>
226+
<goal>jar-no-fork</goal>
227+
</goals>
228+
<phase>package</phase>
229+
</execution>
230+
</executions>
231+
</plugin>
232+
<plugin>
233+
<groupId>org.apache.maven.plugins</groupId>
234+
<artifactId>maven-javadoc-plugin</artifactId>
235+
<version>3.12.0</version>
236+
<executions>
237+
<execution>
238+
<id>attach-javadocs</id>
239+
<goals>
240+
<goal>jar</goal>
241+
</goals>
242+
<phase>package</phase>
243+
</execution>
244+
</executions>
245+
</plugin>
218246
</plugins>
219247
</build>
220248
</project>

src/main/java/com/retailsvc/http/Jackson2JsonTypeMapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* mapper you pass is the mapper you get.
1212
*
1313
* <p>Implements {@link TypedTypeMapper}, so handlers can ask for a typed view of the body via
14-
* {@link Request#parsed(Class)}.
14+
* {@link Request#asPojo(Class)}.
1515
*
1616
* <p>Typical wiring:
1717
*

0 commit comments

Comments
 (0)