We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 239ad82 + 792cfd6 commit 359881dCopy full SHA for 359881d
project/Build.scala
@@ -269,6 +269,13 @@ object Build {
269
// If someone puts a source file at the root (e.g., for manual testing),
270
// don't pick it up as part of any project.
271
sourcesInBase := false,
272
+
273
+ // For compatibility with Java 9+ module system;
274
+ // without Automatic-Module-Name, the module name is derived from the jar file which is invalid because of the _3 suffix.
275
+ Compile / packageBin / packageOptions +=
276
+ Package.ManifestAttributes(
277
+ "Automatic-Module-Name" -> s"${dottyOrganization.replaceAll("-",".")}.${moduleName.value.replaceAll("-",".")}"
278
+ )
279
)
280
281
// Settings used for projects compiled only with Java
0 commit comments