Skip to content

Commit d5638aa

Browse files
florian-beetzalexarchambault
authored andcommitted
Add Automatic-Module-Name for Java 9 compatibility (#49)
1 parent 23d11b3 commit d5638aa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build.sbt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ lazy val sourcecode = crossProject(JSPlatform, JVMPlatform, NativePlatform)
5858

5959
scala211plus ++ scala2
6060
},
61+
// Java 9 settings
62+
packageOptions in (Compile, packageBin) += Package.ManifestAttributes(
63+
"Automatic-Module-Name" -> "com.lihaoyi.sourcecode"
64+
),
6165
// Osgi settings
6266
osgiSettings,
6367
exportPackage := Seq("sourcecode.*"),

0 commit comments

Comments
 (0)