Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

respect publishArtifact := false #26

Merged
merged 1 commit into from
Dec 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,11 @@ object CodeArtifactPlugin extends AutoPlugin {
// See: https://www.scala-sbt.org/1.x/docs/Howto-Dynamic-Task.html
private def dynamicallyPublish: Def.Initialize[Task[Unit]] = Def.taskDyn {
val shouldSkip = (publish / skip).value
val publishEnabled = (publish / publishArtifact).value
val logger = streams.value.log
val ref = thisProjectRef.value

if (shouldSkip) Def.task {
if (shouldSkip || !publishEnabled) Def.task {
logger.debug(s"Skipping publish for ${ref.project}")
}
else publish0
Expand Down
Loading