Skip to content

Commit

Permalink
build: ban these sbt commands (#1862)
Browse files Browse the repository at this point in the history
Releases of jars to Maven Central should be finished using
repository.apache.org UI.

These sbt commands are still allowed:
* sonatypePrepare
* sonatypeBundleUpload
* sonatypeClose
  • Loading branch information
pjfanning authored Sep 27, 2024
1 parent ded3f89 commit aed153c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scala/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,12 @@ libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.2.19" % Test,
"dev.zio" %% "zio" % "2.1.7" % Test,
)

// Exclude sonatypeRelease and sonatypeBundleRelease commands because we
// don't want to release this project to Maven Central without having
// to complete the release using the repository.apache.org web site.
commands := commands.value.filterNot { command =>
command.nameOption.exists { name =>
name.contains("sonatypeRelease") || name.contains("sonatypeBundleRelease")
}
}

0 comments on commit aed153c

Please sign in to comment.