Skip to content

Commit fd39e20

Browse files
committed
Fixed compile and depency issues.
1 parent 26ffb8a commit fd39e20

File tree

2 files changed

+17
-14
lines changed

2 files changed

+17
-14
lines changed

pom.xml

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,14 @@
1818
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
1919

2020
<jdkVersion>1.8</jdkVersion>
21-
<maven.compiler.release>8</maven.compiler.release>
21+
<maven.compiler.release>9</maven.compiler.release>
22+
<maven.compiler.source>9</maven.compiler.source>
2223
<basedir>.</basedir>
2324
<!-- Dependency versions -->
2425
<testng.version>6.8.5</testng.version>
2526
<mockito.version>1.10.19</mockito.version>
2627
<jacoco.version>0.8.2</jacoco.version>
27-
<findbugs.version>2.5.2</findbugs.version>
28+
<findbugs.version>3.0.5</findbugs.version>
2829
<javadoc.version>3.0.1</javadoc.version>
2930
</properties>
3031

@@ -525,7 +526,9 @@
525526
<artifactId>maven-compiler-plugin</artifactId>
526527
<version>3.8.0</version>
527528
<configuration>
528-
<release>9</release>
529+
<target>${maven.compiler.release}</target>
530+
<source>${maven.compiler.source}</source>
531+
<release>${maven.compiler.release}</release>
529532
</configuration>
530533
</plugin>
531534
<plugin>
@@ -561,7 +564,7 @@
561564
<configuration>
562565
<excludes>java.money</excludes>
563566
<excludePackageNames>java.money</excludePackageNames>
564-
<additionalparam>-Xdoclint:none</additionalparam>
567+
<additionalJOptions>-Xdoclint:none</additionalJOptions>
565568
<detectLinks>false</detectLinks>
566569
<keywords>true</keywords>
567570
<linksource>false</linksource>
@@ -811,9 +814,8 @@
811814
<!-- compile everything to ensure module-info contains right entries -->
812815
<!-- required when JAVA_HOME is JDK 8 or below -->
813816
<jdkToolchain>
814-
<version>9</version>
817+
<version>${maven.compiler.release}</version>
815818
</jdkToolchain>
816-
<release>9</release>
817819
</configuration>
818820
</execution>
819821
<execution>
@@ -823,9 +825,10 @@
823825
</goals>
824826
<!-- recompile everything for target VM except the module-info.java -->
825827
<configuration>
826-
<release>${maven.compiler.release}</release>
828+
<release>8</release>
829+
<source>8</source>
827830
<excludes>
828-
<exclude>java/money/module-info.java</exclude>
831+
<exclude>module-info.java</exclude>
829832
</excludes>
830833
</configuration>
831834
</execution>
@@ -918,12 +921,12 @@
918921
<plugin>
919922
<groupId>org.codehaus.mojo</groupId>
920923
<artifactId>jdepend-maven-plugin</artifactId>
921-
<version>2.0-beta-2</version>
924+
<version>2.0</version>
922925
</plugin>
923926
<plugin>
924927
<groupId>org.apache.maven.plugins</groupId>
925928
<artifactId>maven-surefire-report-plugin</artifactId>
926-
<version>2.15</version>
929+
<version>3.0.0-M3</version>
927930
<configuration>
928931
<aggregate>true</aggregate>
929932
<xrefLocation>${project.reporting.outputDirectory}/../xref-test</xrefLocation>
@@ -933,7 +936,7 @@
933936
<plugin>
934937
<groupId>org.apache.maven.plugins</groupId>
935938
<artifactId>maven-pmd-plugin</artifactId>
936-
<version>3.0.1</version>
939+
<version>3.12.0</version>
937940
<configuration>
938941
<targetJdk>${maven.compile.targetLevel}</targetJdk>
939942
<format>xml</format>
@@ -996,7 +999,7 @@
996999
<plugin>
9971000
<groupId>org.apache.maven.plugins</groupId>
9981001
<artifactId>maven-jxr-plugin</artifactId>
999-
<version>2.3</version>
1002+
<version>3.0.0</version>
10001003
<configuration>
10011004
<aggregate>true</aggregate>
10021005
<linkJavadoc>true</linkJavadoc>
@@ -1039,7 +1042,7 @@
10391042
<plugin>
10401043
<groupId>org.apache.maven.plugins</groupId>
10411044
<artifactId>maven-project-info-reports-plugin</artifactId>
1042-
<version>2.7</version>
1045+
<version>3.0.0</version>
10431046
</plugin>
10441047
<plugin>
10451048
<groupId>org.codehaus.mojo</groupId>

src/main/java/java/money/module-info.java renamed to src/main/java/module-info.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* See the License for the specific language governing permissions and
1515
* limitations under the License.
1616
*/
17-
module java.money {
17+
module javax.money {
1818
exports javax.money;
1919
exports javax.money.convert;
2020
exports javax.money.format;

0 commit comments

Comments
 (0)