1
1
import sbtcrossproject .CrossPlugin .autoImport .{crossProject , CrossType }
2
- val dottyVersion = " 0.17.0 "
2
+ val dottyVersion = " 0.19.0-RC1 "
3
3
val scala211Version = " 2.11.12"
4
4
val scala212Version = " 2.12.10"
5
5
val scala213Version = " 2.13.1"
6
6
val spireVersion = " 0.17.0-M1"
7
- val zioVersion = " 1.0.0-RC13 "
7
+ val zioVersion = " 1.0.0-RC14 "
8
8
val scalametaVersion = " 4.2.3"
9
9
val onnxJavaCPPPresetVersion = " 1.6.0-1.5.2-SNAPSHOT"
10
10
scalaVersion := scala212Version
@@ -17,21 +17,25 @@ lazy val commonSettings = Seq(
17
17
resolvers += " Sonatype OSS Snapshots" at " https://oss.sonatype.org/content/repositories/snapshots" ,
18
18
updateOptions := updateOptions.value.withLatestSnapshots(false ),
19
19
scalacOptions ++= Seq (" -feature" , " -unchecked" , " -deprecation" , " -Ywarn-unused" , " -Yrangepos" ),
20
- autoCompilerPlugins := true
20
+ autoCompilerPlugins := true ,
21
+ organization := " com.github.EmergentOrder" ,
22
+ homepage := Some (url(" https://github.com/EmergentOrder/onnx-scala" )),
23
+ scmInfo := Some (ScmInfo (url(" https://github.com/EmergentOrder/onnx-scala" ),
24
+ " [email protected] :EmergentOrder/onnx-scala.git" )),
25
+ developers := List (Developer (" EmergentOrder" ,
26
+ " Alexander Merritt" ,
27
+
28
+ url(" https://github.com/EmergentOrder" ))),
29
+ licenses += (" AGPL-3.0" , url(" https://www.gnu.org/licenses/agpl-3.0.html" )),
30
+ publishMavenStyle := true ,
31
+ publishTo := sonatypePublishToBundle.value
21
32
)
22
33
23
- lazy val common = (crossProject(JSPlatform , JVMPlatform , NativePlatform )
34
+ lazy val common = (crossProject(JSPlatform , JVMPlatform )
24
35
.crossType(CrossType .Pure ) in file(" common" ))
25
36
.settings(commonSettings, name := " onnx-scala-common" ,
26
- // excludeFilter in unmanagedSources := (CrossVersion
27
- // .partialVersion(scalaVersion.value) match {
28
- // case Some((0, n)) => "UnionType.scala"
29
- // case _ => ""
30
- // }
31
- // )
32
37
)
33
38
.jvmSettings(
34
- // scalaVersion := scala213Version,
35
39
crossScalaVersions := Seq (
36
40
dottyVersion,
37
41
scala212Version,
@@ -41,12 +45,11 @@ lazy val common = (crossProject(JSPlatform, JVMPlatform, NativePlatform)
41
45
publishArtifact in (Compile , packageDoc) := false
42
46
)
43
47
.jsSettings(
44
- // scalaVersion := scala213Version,
45
48
crossScalaVersions := Seq (scala212Version, scala211Version, scala213Version)
46
49
)
47
- .nativeSettings(
48
- scalaVersion := scala211Version
49
- )
50
+ // .nativeSettings(
51
+ // scalaVersion := scala211Version
52
+ // )
50
53
51
54
lazy val commonJS = common.js
52
55
.disablePlugins(dotty.tools.sbtplugin.DottyPlugin )
@@ -58,18 +61,16 @@ lazy val programGenerator = (crossProject(JSPlatform, JVMPlatform)
58
61
.settings(
59
62
commonSettings,
60
63
name := " onnx-scala-program-generator" ,
61
- // scalaVersion := scala213Version,
62
64
mainClass in (Compile , run) := Some (
63
65
" org.emergentorder.onnx.ONNXProgramGenerator"
64
66
),
65
67
libraryDependencies ++= Seq (
66
- (" org.scalameta" %% " scalameta" % scalametaVersion).withDottyCompat(dottyVersion)
68
+ (" org.scalameta" %% " scalameta" % scalametaVersion)
67
69
),
68
70
publishArtifact in (Compile , packageDoc) := false
69
71
)
70
72
.jvmSettings(
71
73
crossScalaVersions := Seq (
72
- // dottyVersion,
73
74
scala212Version,
74
75
scala211Version,
75
76
scala213Version
@@ -88,7 +89,6 @@ lazy val backends = (crossProject(JVMPlatform, JSPlatform)
88
89
.settings(
89
90
commonSettings,
90
91
name := " onnx-scala-backends" ,
91
- // scalaVersion := scala213Version,
92
92
libraryDependencies ++= Seq (
93
93
" org.bytedeco" % " ngraph-platform" % " 0.25.0-1.5.2-SNAPSHOT"
94
94
),
@@ -128,19 +128,17 @@ lazy val core = (crossProject(JSPlatform, JVMPlatform)
128
128
publishArtifact in (Compile , packageDoc) := false ,
129
129
libraryDependencies ++= (CrossVersion
130
130
.partialVersion(scalaVersion.value) match {
131
- case Some ((2 , n)) if (n == 13 || n == 11 ) =>
131
+ case Some ((2 , n)) =>
132
132
Seq (
133
133
" org.typelevel" %% " spire" % spireVersion
134
134
)
135
135
case _ =>
136
136
Seq (
137
- (" org.typelevel" %% " spire" % spireVersion)
138
- .withDottyCompat(dottyVersion)
137
+ (" org.typelevel" %% " spire" % spireVersion).withDottyCompat(dottyVersion)
139
138
)
140
139
}),
141
140
libraryDependencies ++= Seq (
142
- (" org.bytedeco" % " onnx-platform" % onnxJavaCPPPresetVersion)
143
- .withDottyCompat(dottyVersion)
141
+ " org.bytedeco" % " onnx-platform" % onnxJavaCPPPresetVersion
144
142
)
145
143
)
146
144
.jsSettings(
@@ -202,3 +200,17 @@ lazy val zio = (crossProject(JVMPlatform, JSPlatform)
202
200
.jsSettings(
203
201
crossScalaVersions := Seq (scala212Version, scala211Version, scala213Version)
204
202
)
203
+
204
+ lazy val sonatypeSettings = Seq (
205
+ organization := " com.github.EmergentOrder" ,
206
+ homepage := Some (url(" https://github.com/EmergentOrder/onnx-scala" )),
207
+ scmInfo := Some (ScmInfo (url(" https://github.com/EmergentOrder/onnx-scala" ),
208
+ " [email protected] :EmergentOrder/onnx-scala.git" )),
209
+ developers := List (Developer (" EmergentOrder" ,
210
+ " Alexander Merritt" ,
211
+
212
+ url(" https://github.com/EmergentOrder" ))),
213
+ licenses += (" AGPL-3.0" , url(" https://www.gnu.org/licenses/agpl-3.0.html" )),
214
+ publishMavenStyle := true ,
215
+ publishTo := sonatypePublishToBundle.value
216
+ )
0 commit comments