Skip to content

Commit 9326dd9

Browse files
committed
Define version scheme (Early SemVer) and policy intention
1 parent e5fef2b commit 9326dd9

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

build.sbt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ lazy val commonSettings = Seq(
2424
// "-release:19",
2525
"-source:3.2"
2626
),
27+
versionPolicyIntention := Compatibility.BinaryCompatible, //As long as we are pre 1.0.0, BinaryCompatible for a patch version bump and None for a minor version bump
28+
versionScheme := Some("early-semver"),
29+
// mimaPreviousArtifacts := Set("org.emergent-order" %%% "onnx-scala-common" % "0.17.0"),
2730
autoCompilerPlugins := true
2831
) ++ sonatypeSettings
2932

@@ -45,6 +48,7 @@ lazy val proto = (crossProject(JSPlatform, JVMPlatform, NativePlatform)
4548
.settings(
4649
commonSettings,
4750
name := "onnx-scala-proto",
51+
// mimaPreviousArtifacts := Set("org.emergent-order" %%% "onnx-scala-proto" % "0.17.0"),
4852
crossScalaVersions := Seq(
4953
dottyVersion
5054
),
@@ -64,6 +68,7 @@ lazy val backends = (crossProject(JSPlatform, JVMPlatform, NativePlatform)
6468
.settings(
6569
commonSettings,
6670
name := "onnx-scala-backends",
71+
// mimaPreviousArtifacts := Set("org.emergent-order" %%% "onnx-scala-backends" % "0.17.0"),
6772
libraryDependencies ++= Seq(
6873
"com.microsoft.onnxruntime" % "onnxruntime" % "1.13.1",
6974
// "com.microsoft.onnxruntime" % "onnxruntime-extensions" % "0.5.0"
@@ -103,6 +108,7 @@ lazy val core = (crossProject(JSPlatform, JVMPlatform, NativePlatform)
103108
.settings(
104109
commonSettings,
105110
name := "onnx-scala",
111+
// mimaPreviousArtifacts := Set("org.emergent-order" %%% "onnx-scala" % "0.17.0"),
106112
crossScalaVersions := Seq(
107113
dottyVersion
108114
),

project/plugins.sbt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
addSbtPlugin("ch.epfl.scala" % "sbt-version-policy" % "2.1.0")
12
addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.2.0")
23
addSbtPlugin("org.portable-scala" % "sbt-scala-native-crossproject" % "1.2.0")
34
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.12.0")

0 commit comments

Comments
 (0)