Skip to content

Commit 64c4e88

Browse files
committed
build: Fix publishing by adding back filtering of JAR artifacts
1 parent b5a5fb8 commit 64c4e88

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

build.mill

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,14 @@ trait SparkModule extends Cross.Module2[String, String] with SbtModule with Sona
9494
PublishInfo(jar(), classifier = Some("thin"), ivyConfig = "compile")
9595
)
9696

97+
def publishArtifacts: T[PublishModule.PublishData] = Task {
98+
val publishData = super.publishArtifacts()
99+
publishData.copy(payload = publishData.payload.filter {
100+
case (ref, name) =>
101+
!ref.toString.contains("jar.dest") || name.toString.contains("-thin.jar")
102+
})
103+
}
104+
97105
override def sonatypeCentralReadTimeout: T[Int] = 600000
98106
override def sonatypeCentralAwaitTimeout: T[Int] = 1200 * 1000
99107

0 commit comments

Comments
 (0)