arktekk / sbt-aether-deploy

Deploy SBT artifacts using Maven Artifact Resolver (formerly Eclipse Aether)
Other
84 stars 31 forks source link

How to skip a (root-)module in publish or aetherDeploy #66

Closed ThijsBroersen closed 1 year ago

ThijsBroersen commented 3 years ago

I tried

skip in aetherDeploy := true,
skip in publish := true

it still tries to publish the module(s)

ThijsBroersen commented 3 years ago

I added

publish := {},
aetherDeploy := {}

to clear the tasks in those modules

Isammoc commented 3 years ago

@ThijsBroersen

I had the same question. Indeed, now sbt use publish / skip to decide if the current project should "skip" or not the "publish" task. Seems that plugin still use the publishArtifact settings

Try to set

Compile / publishArtifact := false

Ref: src/main/scala/aether/Plugin.scala#L78

hamnis commented 1 year ago

we now also support skip in publish := true