Skip to content

Commit

Permalink
fix: publish sources and javadocs (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
grigoriev authored Sep 13, 2024
1 parent dcb8afe commit 0377086
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 8 deletions.
43 changes: 43 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<maven-javadoc-plugin.version>3.10.0</maven-javadoc-plugin.version>
<maven-source-plugin.version>3.3.1</maven-source-plugin.version>
<maven-gpg-plugin.version>3.2.5</maven-gpg-plugin.version>

<nexus-staging-maven-plugin.version>1.7.0</nexus-staging-maven-plugin.version>
Expand Down Expand Up @@ -145,6 +147,37 @@
<version>3.4.2</version>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>${maven-source-plugin.version}</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven-javadoc-plugin.version}</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
<configuration>
<sourcepath>${basedir}/src/main/java</sourcepath>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
Expand Down Expand Up @@ -213,6 +246,16 @@
</environmentVariables>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
</plugin>
</plugins>
</build>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
* Alternatively, the <code>findRanges</code> methods not only return objects
* for the differing ranges but for non-differing ranges too.
* <p>
* The algorithm used is an objectified version of one described in: <it>A File
* Comparison Program,</it> by Webb Miller and Eugene W. Myers, Software
* The algorithm used is an objectified version of one described in: <i>A File
* Comparison Program,</i> by Webb Miller and Eugene W. Myers, Software
* Practice and Experience, Vol. 15, Nov. 1985.
*
* @see IRangeComparator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ public void handlePossibleChangedPart(int leftstart, int leftend,
* @param end
* @param oldComp
* @param before
* @param anOutputFormat specifies how this range shall be formatted in the output
* @param outputFormat specifies how this range shall be formatted in the output
*/
public void markAsDeleted(int start, int end, TextNodeComparator oldComp,
int before, int after, ModificationType outputFormat) {
Expand Down Expand Up @@ -440,7 +440,7 @@ public void setStartDeletedID(long aDeletedID) {
* output document. The IDs must be successive along the different
* comparators.
*
* @param aDeletedID
* @param aChangedID
*/
public void setStartChangedID(long aChangedID) {
changedID = aChangedID;
Expand All @@ -451,7 +451,7 @@ public void setStartChangedID(long aChangedID) {
* output document. The IDs must be successive along the different
* comparators.
*
* @param aDeletedID
* @param aNewID
*/
public void setStartNewID(long aNewID) {
newID = aNewID;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* Such nodes will be created between two text nodes, when they really
* are separate, e.g. in two successive table cells.
*
* @author Carsten Pfeiffer <[email protected]>
* @author Carsten Pfeiffer &lt;[email protected]&gt;
*/
public class SeparatingNode extends TextNode {

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/outerj/daisy/diff/html/dom/TagNode.java
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ public String getEndTag() {
* <p>It actually might have nothing to do with being really deleted, because
* the element might be kept after its text content was deleted.<br>
* Example:<br>
* table cells can be kept after its text content was deleted</br>
* table cells can be kept after its text content was deleted<br>
* horizontal rule has never had text content, but can be deleted</p>
*/
@Override
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/outerj/daisy/diff/output/Differ.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* as produced by DaisyDiff.
*
* @author kapelonk
* @see HtmlDiffer
* @see org.outerj.daisy.diff.html.HTMLDiffer
*/
public interface Differ {

Expand Down

0 comments on commit 0377086

Please sign in to comment.