mill icon indicating copy to clipboard operation
mill copied to clipboard

Mill should add the multi-release jar file attribute to the created uber jar file if one of the input jar files is a multi-release jar.

Open Flowdalic opened this issue 2 years ago • 0 comments

Mill should add the multi-release jar file attribute to the created uber jar file if one of the input jar files is a multi-release jar.

Right now, mill users have to manually add

  def manifest = super.manifest().add(
    "Multi-Release" -> "true"
  )

to their build.sc if one of the input jar files is a multi-release jar file and if they want the JVM to use the most suitable classes depending on the JVM version. Otherwise, this may leads to superfluous warnings because of code paths for older JREs being used.

This is (probably) the right fix, instead of https://github.com/com-lihaoyi/mill/pull/2724

Flowdalic avatar Sep 10 '23 09:09 Flowdalic