Skip to content

Commit 817972f

Browse files
committed
More cleanup
1 parent fba875e commit 817972f

File tree

4 files changed

+9
-76
lines changed

4 files changed

+9
-76
lines changed

build.sbt

Lines changed: 7 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ lazy val native = project
1515
.settings(commonSettings)
1616
.settings(
1717
name := "scala-rust-interop-native",
18-
nativeBuildTool := Cargo(),
18+
nativeBuildTool := Cargo.make(),
1919
nativeCompile / sourceDirectory := baseDirectory.value,
2020
libraryDependencies ++= List(
2121
),
@@ -30,31 +30,15 @@ lazy val core = project
3030
Compile / mainClass := Some("com.github.sideeffffect.scalarustinterop.Main"),
3131
scalacOptions --= List("-Xfatal-warnings"),
3232
libraryDependencies ++= List(
33-
// Dependencies.doobie,
34-
// Dependencies.circe,
35-
// Dependencies.commonsLang,
36-
// Dependencies.emil,
37-
// Dependencies.http4sCirce,
38-
// Dependencies.http4sDsl,
39-
// Dependencies.http4sServer,
40-
// Dependencies.liquibase,
41-
// Dependencies.logback,
42-
// Dependencies.mariadb,
43-
// Dependencies.snakeyaml,
4433
Dependencies.zio,
45-
// Dependencies.zioCats,
46-
// Dependencies.zioConfig,
47-
// Dependencies.zioConfigMagnolia,
48-
// Dependencies.zioMagic,
4934
// Test
50-
// Dependencies.testcontainers % Test,
5135
Dependencies.zioTest % Test,
5236
Dependencies.zioTestSbt % Test,
5337
),
5438
)
5539
.dependsOn(native % Runtime)
5640

57-
lazy val commonSettings: List[Def.Setting[_]] = /* DecentScala.decentScalaSettings ++ */ List(
41+
lazy val commonSettings: List[Def.Setting[_]] = DecentScala.decentScalaSettings ++ List(
5842
organization := "com.github.sideeffffect",
5943
homepage := Some(url("https://github.com/sideeffffect/scala-rust-interop")),
6044
licenses := List("GPLv3" -> url("https://www.gnu.org/licenses/gpl-3.0.en.html")),
@@ -67,22 +51,11 @@ lazy val commonSettings: List[Def.Setting[_]] = /* DecentScala.decentScalaSettin
6751
),
6852
),
6953
scalaVersion := crossScalaVersions.value.head,
70-
crossScalaVersions := List("2.13.5"),
71-
// crossScalaVersions := List(DecentScala.decentScalaVersion213),
72-
// ThisBuild / scalafixDependencies ++= List(
73-
// Dependencies.zioMagicComments,
74-
// ),
54+
crossScalaVersions := List(DecentScala.decentScalaVersion213),
7555
testFrameworks += new TestFramework("zio.test.sbt.ZTestFramework"),
76-
// missinglinkExcludedDependencies ++= List(
77-
// moduleFilter(organization = "ch.qos.logback", name = "logback-classic"),
78-
// moduleFilter(organization = "ch.qos.logback", name = "logback-core"),
79-
// moduleFilter(organization = "com.zaxxer", name = "HikariCP"),
80-
// moduleFilter(organization = "org.slf4j", name = "slf4j-api"),
81-
// ),
82-
// mimaReportBinaryIssues := {},
83-
// https://github.com/olafurpg/sbt-ci-release/issues/181
84-
sonatypeCredentialHost := "s01.oss.sonatype.org",
85-
sonatypeRepository := "https://s01.oss.sonatype.org/service/local",
56+
missinglinkExcludedDependencies ++= List(
57+
),
58+
mimaReportBinaryIssues := {},
8659
)
8760

88-
addCommandAlias("ci", "; javah; check; +publishLocal")
61+
addCommandAlias("ci", "; check; +publishLocal")

project/Cargo.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,5 @@ private final class Cargo private (release: Boolean = true) extends BuildTool {
6161
}
6262

6363
object Cargo {
64-
def apply(release: Boolean = true): BuildTool = new Cargo(release)
64+
def make(release: Boolean = true): BuildTool = new Cargo(release)
6565
}

project/Dependencies.scala

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -3,50 +3,10 @@ import sbt._
33
object Dependencies {
44

55
object Versions {
6-
7-
val doobie = "0.13.1"
8-
val circe = "0.13.0"
9-
val commonsLang = "3.12.0"
10-
val emil = "0.9.1"
11-
val http4s = "0.21.22"
12-
val liquibase = "4.3.5"
13-
val logback = "1.2.3"
14-
val mariadb = "2.7.2"
15-
val snakeyaml = "1.28"
166
val zio = "1.0.7"
17-
val zioCats = "2.4.1.0"
18-
val zioConfig = "1.0.4"
19-
val zioMagic = "0.3.0"
20-
21-
// Test
22-
val testcontainers = "0.39.3"
23-
24-
// Scalafix plugins
25-
val zioMagicComments = "0.1.0"
267
}
278

28-
val doobie = "org.tpolecat" %% "doobie-hikari" % Versions.doobie
29-
val circe = "io.circe" %% "circe-generic" % Versions.circe
30-
val commonsLang = "org.apache.commons" % "commons-lang3" % Versions.commonsLang
31-
val emil = "com.github.eikek" %% "emil-doobie" % Versions.emil
32-
val http4sCirce = "org.http4s" %% "http4s-circe" % Versions.http4s
33-
val http4sDsl = "org.http4s" %% "http4s-dsl" % Versions.http4s
34-
val http4sServer = "org.http4s" %% "http4s-blaze-server" % Versions.http4s
35-
val liquibase = "org.liquibase" % "liquibase-core" % Versions.liquibase
36-
val logback = "ch.qos.logback" % "logback-classic" % Versions.logback
37-
val mariadb = "org.mariadb.jdbc" % "mariadb-java-client" % Versions.mariadb
38-
val snakeyaml = "org.yaml" % "snakeyaml" % Versions.snakeyaml
399
val zio = "dev.zio" %% "zio" % Versions.zio
40-
val zioCats = "dev.zio" %% "zio-interop-cats" % Versions.zioCats
41-
val zioConfig = "dev.zio" %% "zio-config-typesafe" % Versions.zioConfig
42-
val zioConfigMagnolia = "dev.zio" %% "zio-config-magnolia" % Versions.zioConfig
43-
val zioMagic = "io.github.kitlangton" %% "zio-magic" % Versions.zioMagic
4410
val zioTest = "dev.zio" %% "zio-test" % Versions.zio
4511
val zioTestSbt = "dev.zio" %% "zio-test-sbt" % Versions.zio
46-
47-
// Test
48-
val testcontainers = "com.dimafeng" %% "testcontainers-scala-postgresql" % Versions.testcontainers
49-
50-
// Scalafix plugins
51-
val zioMagicComments = "com.timushev" %% "zio-magic-comments" % Versions.zioMagicComments
5212
}

project/plugins.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
addSbtPlugin("ch.jodersky" % "sbt-jni" % "1.4.1")
22
addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.5.7")
3-
addSbtPlugin("com.github.sideeffffect" % "sbt-decent-scala" % "0.6.7+1-78f64f07")
3+
addSbtPlugin("com.github.sideeffffect" % "sbt-decent-scala" % "0.7.0+1-8662d5e8")

0 commit comments

Comments
 (0)