Skip to content

Commit

Permalink
fix: update shared module for castor (#484)
Browse files Browse the repository at this point in the history
  • Loading branch information
abalias committed Mar 28, 2023
1 parent efe4557 commit 2202a22
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 38 deletions.
38 changes: 11 additions & 27 deletions castor/lib/build.sbt
@@ -1,4 +1,5 @@
import Dependencies._
import sbtrelease.ReleasePlugin.autoImport.ReleaseTransformations._

inThisBuild(
Seq(
Expand All @@ -18,34 +19,9 @@ inThisBuild(

coverageDataDir := target.value / "coverage"

SbtUtils.disablePlugins(publishConfigure) // SEE also SbtUtils.scala
lazy val publishConfigure: Project => Project = sys.env
.get("PUBLISH_PACKAGES") match {
case None => _.disablePlugins(GitHubPackagesPlugin)
case Some(_) => (p: Project) => p
}

sys.env
.get("PUBLISH_PACKAGES") // SEE also plugin.sbt
.map { _ =>
println("### Configure release process ###")
import sbtrelease.ReleasePlugin.autoImport.ReleaseTransformations._
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
publishArtifacts,
setNextVersion
)
}
.toSeq

// Project definitions
lazy val root = project
.in(file("."))
.configure(publishConfigure)
.settings(
name := "castor-root",
)
Expand All @@ -54,17 +30,25 @@ lazy val root = project

lazy val core = project
.in(file("core"))
.configure(publishConfigure)
.settings(
name := "castor-core",
libraryDependencies ++= coreDependencies
)

lazy val `sql-doobie` = project
.in(file("sql-doobie"))
.configure(publishConfigure)
.settings(
name := "castor-sql-doobie",
libraryDependencies ++= sqlDoobieDependencies
)
.dependsOn(core)

releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
publishArtifacts,
setNextVersion
)
2 changes: 1 addition & 1 deletion castor/lib/project/Dependencies.scala
Expand Up @@ -7,7 +7,7 @@ object Dependencies {
val zioCatsInterop = "3.3.0"
val prismNodeClient = "0.3.0"
val prismSdk = "v1.4.1" // scala-steward:off
val shared = "0.2.0"
val shared = "0.3.0"
val flyway = "9.8.3"
val scalaUri = "4.0.3"
}
Expand Down
10 changes: 0 additions & 10 deletions castor/lib/project/SbtUtils.scala

This file was deleted.

0 comments on commit 2202a22

Please sign in to comment.