Mappings are first and foremost a runtime dependency. They contain no code, so adding them to the compile classpath is redundant. Plus with the module system in play, this creates a direct conflict as the module-path can only contain jar and jmod files.1
Here's an example use case for compiling a modular service that depends on fmlloader, a legacy jar. By assigning the compile classpath to the module path, we could easily use non-modular jars in our library.
There's a catch though: currently, the classpath can not be a valid module path because it contains an invalid artifact - mappings. If we try to compile our code in this configuration, the compiler will crash.
Removes mappings from the compile classpath.
Mappings are first and foremost a runtime dependency. They contain no code, so adding them to the compile classpath is redundant. Plus with the module system in play, this creates a direct conflict as the module-path can only contain
jar
andjmod
files.1Here's an example use case for compiling a modular service that depends on
fmlloader
, a legacy jar. By assigning the compile classpath to the module path, we could easily use non-modular jars in our library.There's a catch though: currently, the classpath can not be a valid module path because it contains an invalid artifact - mappings. If we try to compile our code in this configuration, the compiler will crash.