Skip to content

Commit

Permalink
Merge pull request #52 from norrisjeremy/20220131
Browse files Browse the repository at this point in the history
Adjust dependencies and make Java 9+ friendly
  • Loading branch information
bbottema authored Jan 31, 2022
2 parents dbcde0a + 489262f commit cca7e9b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
15 changes: 14 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,19 @@
<artifactId>rtf-to-html</artifactId>
<version>1.0.1</version>
</dependency>
<dependency>
<groupId>com.sun.activation</groupId>
<artifactId>jakarta.activation</artifactId>
<version>2.0.1</version>
</dependency>
<!-- required for java 9+ compatibility with assertj-assertions-generator-maven-plugin, which uses javax.annotation.Generated -->
<!-- see https://github.com/assertj/assertj-assertions-generator-maven-plugin/issues/93 -->
<dependency>
<groupId>jakarta.annotation</groupId>
<artifactId>jakarta.annotation-api</artifactId>
<version>1.3.5</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
Expand Down Expand Up @@ -109,4 +122,4 @@
</plugins>
</build>

</project>
</project>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.simplejavamail.outlookmessageparser.model;

import javax.activation.MimetypesFileTypeMap;
import jakarta.activation.MimetypesFileTypeMap;
import java.io.IOException;
import java.io.InputStream;

Expand Down Expand Up @@ -30,4 +30,4 @@ public static String getContentType(String fileName, String charset) {
}
return mimeType;
}
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package org.simplejavamail.outlookmessageparser.model;

import javax.activation.MimetypesFileTypeMap;

/**
* Implementation of the {@link OutlookAttachment} interface that represents a file attachment. It contains some useful information (as long as it is available
* in the .msg file) like the attachment name, its size, etc.
Expand Down

0 comments on commit cca7e9b

Please sign in to comment.