Skip to content
Merged
Show file tree
Hide file tree
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
7 changes: 5 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import java.io.FileInputStream
import java.util.Properties
import sbt.ThisBuild
import scala.sys.process.Process
import xerial.sbt.Sonatype.sonatypeCentralHost

val scala3Version = "3.3.7"
val scala2Version = "2.13.18"
Expand All @@ -16,6 +17,8 @@ inThisBuild(
Seq(
organization := "org.funfix",
scalaVersion := scala2Version,
// Configure for Sonatype Central Portal
sonatypeCredentialHost := sonatypeCentralHost,
// ---
// Settings for dealing with the local Gradle-assembled artifacts
// Also see: publishLocalGradleDependencies
Expand Down Expand Up @@ -102,7 +105,7 @@ val sharedSettings = Seq(
publishTo := {
val centralSnapshots = "https://central.sonatype.com/repository/maven-snapshots/"
if (version.value.endsWith("-SNAPSHOT")) Some("central-snapshots".at(centralSnapshots))
else localStaging.value
else sonatypePublishToBundle.value
},

// ScalaDoc settings
Expand Down Expand Up @@ -179,5 +182,5 @@ addCommandAlias(
)
addCommandAlias(
"ci-publish",
";publishLocalGradleDependencies; +Test/compile; +publishSigned; sonaUpload"
";publishLocalGradleDependencies; +Test/compile; +publishSigned; sonatypeBundleRelease"
)
1 change: 1 addition & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.6")
addSbtPlugin("org.typelevel" % "sbt-tpolecat" % "0.5.2")
addSbtPlugin("org.wartremover" % "sbt-wartremover" % "3.5.5")
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.3.1")
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.12.2")

// https://github.com/typelevel/sbt-tpolecat/issues/291
libraryDependencies += "org.typelevel" %% "scalac-options" % "0.1.9"