Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update shared module for castor #484

Merged
merged 3 commits into from
Mar 28, 2023
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
38 changes: 11 additions & 27 deletions castor/lib/build.sbt
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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.