Skip to content

Commit 7ad3143

Browse files
committed
fix mima
Signed-off-by: unlsycn <[email protected]>
1 parent 51c6387 commit 7ad3143

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

libs/javalib/src/mill/javalib/AssemblyModule.scala

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,16 @@ import mill.api.Task.Simple as T
88
import mill.javalib.Assembly.UnopenedInputStream
99
import mill.util.Jvm
1010

11+
trait AssemblyModuleOfflineSupport extends OfflineSupportModule {
12+
override def prepareOffline(all: mainargs.Flag): Task.Command[Seq[PathRef]] = Task.Command {
13+
AssemblyModule.prepareOffline(all)()
14+
}
15+
}
16+
1117
/**
1218
* Module that provides functionality around creating and configuring JVM assembly jars
1319
*/
14-
trait AssemblyModule extends mill.api.Module with OfflineSupportModule {
20+
trait AssemblyModule extends mill.api.Module with AssemblyModuleOfflineSupport {
1521
outer =>
1622

1723
def finalMainClassOpt: T[Either[String, String]]
@@ -148,15 +154,8 @@ trait AssemblyModule extends mill.api.Module with OfflineSupportModule {
148154
created.pathRef
149155
}
150156
}
151-
152-
override def prepareOffline(all: mainargs.Flag): Task.Command[Seq[PathRef]] = Task.Command {
153-
(
154-
super.prepareOffline(all)() ++
155-
AssemblyModule.jarjarabramsWorkerClasspath()
156-
).distinct
157-
}
158157
}
159-
object AssemblyModule extends ExternalModule with CoursierModule {
158+
object AssemblyModule extends ExternalModule with CoursierModule with AssemblyModuleOfflineSupport {
160159

161160
def jarjarabramsWorkerClasspath: T[Seq[PathRef]] = Task {
162161
defaultResolver().classpath(Seq(

0 commit comments

Comments
 (0)