-
Hello, I uses the Mill command to generate the fat jar. The add works correctly however I get the warning:
According to Stackoverflow this seems to be an issue with the log4j logger using the new java 9+ modules: https://stackoverflow.com/questions/53049346/is-log4j2-compatible-with-java-11 The solution seems to be setting the manifest's plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>foo.bar.Generate</mainClass>
<manifestEntries>
<Multi-Release>true</Multi-Release>
</manifestEntries>
</transformer>
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
</transformers>
</configuration>
</execution>
</executions>
</plugin> Can one do this in Mill? If so how? Couldn't find documentation on this, may have missed it. TIA |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Have you tried to add the manifest entry via override def manifest = super.manifest().add("Mulit-Release" -> "true") |
Beta Was this translation helpful? Give feedback.
Have you tried to add the manifest entry via
manifest
target?