Skip to content

Commit

Permalink
Fix publishing locally in mill
Browse files Browse the repository at this point in the history
  • Loading branch information
WojciechMazur committed Sep 4, 2023
1 parent bfaa751 commit 4d5c217
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions project-builder/mill/MillCommunityBuild.sc
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ trait CommunityBuildCoursierModule extends CoursierModule { self: JavaModule =>

// Extension to publish module allowing to upload artifacts to custom maven repo
// Left for compliance with legacy versions
trait CommunityBuildPublishModule extends PublishModule with CommunityBuildCoursierModule {
}
trait CommunityBuildPublishModule extends PublishModule with CommunityBuildCoursierModule {}

/** Replace all Scala in crossVersion with `buildScalaVersion` if its matching `buildScalaVersion`
* binary version
Expand Down Expand Up @@ -246,7 +245,9 @@ def runBuild(configJson: String, targets: Seq[String])(implicit ctx: Ctx) = {
tryEval(module.publishVersion) match {
case Result.Success(`publishVersion`) =>
PublishResult(
evalAsDependencyOf(compileResult, docResult)(module.publishLocal)
evalAsDependencyOf(compileResult, docResult)(
module.publishLocal( /*localIvyRepo=*/ null /* use default */ )
)
)
case Result.Success(version: String) =>
PublishResult(
Expand Down

0 comments on commit 4d5c217

Please sign in to comment.