Skip to content

Commit 32fa608

Browse files
authored
fix: fix wrong mill source layout (#4511)
Trait HasScala2Plugin and HasScala2MacroAnno extending CrossSbtModule will override the mill sources with SBT's folder layout and it will break the modules with mill's default source layout like LitUtility and PanamaConverter. Signed-off-by: unlsycn <[email protected]>
1 parent 9c2498a commit 32fa608

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.sc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,15 +119,15 @@ trait ChiselPublishModule extends CiReleaseModule {
119119

120120
}
121121

122-
trait HasScala2MacroAnno extends CrossSbtModule {
122+
trait HasScala2MacroAnno extends CrossModuleBase {
123123
override def scalacOptions = T {
124124
if (!v.isScala3(crossScalaVersion)) {
125125
super.scalacOptions() ++ Agg("-Ymacro-annotations")
126126
} else super.scalacOptions()
127127
}
128128
}
129129

130-
trait HasScala2Plugin extends CrossSbtModule {
130+
trait HasScala2Plugin extends CrossModuleBase {
131131
def pluginModule: Plugin
132132

133133
override def scalacOptions = T {

0 commit comments

Comments
 (0)