Skip to content

Commit

Permalink
fix publishTo
Browse files Browse the repository at this point in the history
  • Loading branch information
somdoron committed Mar 31, 2024
1 parent 6f4332d commit fd62ea9
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ lazy val zhttpVersion = "1.0.0.0-RC29"
lazy val zioLoggingVersion = "0.5.14"
lazy val mainScalaVersion = "3.3.3"

ThisBuild / organization := "io.github.unit-finance"
//ThisBuild / organization := "io.github.unit-finance"
ThisBuild / organization := "co.unit"
ThisBuild / organizationName := "Unit"
ThisBuild / organizationHomepage := Some(url("https://unit.co"))
ThisBuild / version := "0.0.1"
Expand All @@ -24,17 +25,7 @@ ThisBuild / homepage := Some(url("https://github.com/unit-finance/zio-raft"))
// else Some("releases" at nexus + "service/local/staging/deploy/maven2")
// }

ThisBuild / publishTo := {
val githubOwner = "unit-finance"
val githubRepository = "zio-raft"

val nexus = "https://maven.pkg.github.com/" + githubOwner
if (isSnapshot.value)
Some("snapshots" at nexus + "/"+ githubRepository + "/snapshots")
else
Some("releases" at nexus + "/"+ githubRepository + "/releases")

}
ThisBuild / publishTo := Some("https://maven.pkg.github.com/unit-finance/zio-raft")

ThisBuild / credentials += Credentials(
"Sonatype Nexus Repository Manager",
Expand Down

0 comments on commit fd62ea9

Please sign in to comment.