I am trying to acquaint myself with Java 9 modules and how to define them in IntelliJ. Among other things, I want to solve a split package problem using the --patch-modul
Well eventually with the following configuration of the IntelliJ(Fix version of IDEA-169150) -
IntelliJ IDEA 2018.1 (Community Edition) Build #IC-181.4203.550, built on March 27, 2018 JRE: 1.8.0_152-release-1136-b20 x86_64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o macOS 10.13.3
and the Java Compiler settings for the project as the one in the following screenshot:-
Add the compilation option to patch (Note - I've used the latest version of the jar)
--patch-module com.effjava.collect=/Users/naman.nigam/.m2/repository/com/google/guava/guava/24.1-jre/guava-24.1-jre.jar
Post this select Build > Build Project and the build completes successfully(though I still see RegularImmutableList
in MyImmutableList
as red) for me.