diff --git a/build.sbt b/build.sbt index 49e892e..df97fa3 100644 --- a/build.sbt +++ b/build.sbt @@ -60,9 +60,8 @@ val java17Settings = Seq( ) lazy val noPublishSettings = Seq( - publish := {}, - publishLocal := {}, - publishArtifact := false + publish / skip := true, + publishLocal / skip := true ) lazy val publishSettings = Seq( @@ -88,8 +87,8 @@ lazy val sonatypeSettings = Seq( lazy val root = project .in(file(".")) .settings(commonSettings) - .settings(publishSettings) // these settings are needed to release all aggregated modules under this root module - .settings(noPublishSettings) // this is to exclue the root module itself from being published + .settings(publishSettings) + .settings(noPublishSettings) .aggregate(mamlJs, mamlJvm, mamlSpark) .enablePlugins(ScalaJSPlugin)