File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed
libs/javalib/src/mill/javalib Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -8,10 +8,16 @@ import mill.api.Task.Simple as T
88import mill .javalib .Assembly .UnopenedInputStream
99import 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 (
You can’t perform that action at this time.
0 commit comments