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
8
8
import mill .javalib .Assembly .UnopenedInputStream
9
9
import mill .util .Jvm
10
10
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
+
11
17
/**
12
18
* Module that provides functionality around creating and configuring JVM assembly jars
13
19
*/
14
- trait AssemblyModule extends mill.api.Module with OfflineSupportModule {
20
+ trait AssemblyModule extends mill.api.Module with AssemblyModuleOfflineSupport {
15
21
outer =>
16
22
17
23
def finalMainClassOpt : T [Either [String , String ]]
@@ -148,15 +154,8 @@ trait AssemblyModule extends mill.api.Module with OfflineSupportModule {
148
154
created.pathRef
149
155
}
150
156
}
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
- }
158
157
}
159
- object AssemblyModule extends ExternalModule with CoursierModule {
158
+ object AssemblyModule extends ExternalModule with CoursierModule with AssemblyModuleOfflineSupport {
160
159
161
160
def jarjarabramsWorkerClasspath : T [Seq [PathRef ]] = Task {
162
161
defaultResolver().classpath(Seq (
You can’t perform that action at this time.
0 commit comments