File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 1
1
import $ivy .`de.tototec::de.tobiasroeser.mill.vcs.version::0.1.4`
2
- import $file .settings , settings .PublishLocalNoFluff
2
+ import $file .settings , settings .{ PublishLocalNoFluff , workspaceDirName }
3
3
4
4
import de .tobiasroeser .mill .vcs .version ._
5
5
import mill ._ , scalalib ._
@@ -80,6 +80,17 @@ trait ScalaCliPublishModule extends PublishModule with PublishLocalNoFluff {
80
80
)
81
81
def publishVersion =
82
82
finalPublishVersion()
83
+ override def sourceJar = T {
84
+ import mill .modules .Jvm .createJar
85
+ val allSources0 = allSources().map(_.path).filter(os.exists).toSet
86
+ createJar(
87
+ allSources0 ++ resources().map(_.path).filter(os.exists),
88
+ manifest(),
89
+ (input, relPath) =>
90
+ ! allSources0(input) ||
91
+ (! relPath.segments.contains(" .scala" ) && ! relPath.segments.contains(workspaceDirName))
92
+ )
93
+ }
83
94
}
84
95
85
96
def publishSonatype (
You can’t perform that action at this time.
0 commit comments