@@ -23,21 +23,24 @@ lazy val scala3 = "3.0.2"
23
23
ThisBuild / scalaVersion := scala213
24
24
ThisBuild / scalafixDependencies += organizeImports
25
25
26
- lazy val root = project
26
+ lazy val root = crossProject(JVMPlatform , NativePlatform )
27
+ .crossType(CrossType .Pure )
27
28
.in(file(" ." ))
28
29
.settings(
29
- name := " Python Native Libs" ,
30
- crossScalaVersions := Seq (scala212, scala213, scala3),
30
+ name := " Python Native Libs" ,
31
+ sonatypeCredentialHost := " s01.oss.sonatype.org" ,
32
+ sonatypeRepository := " https://s01.oss.sonatype.org/service/local" ,
31
33
libraryDependencies ++= Seq (
32
- scalaCollectionCompat,
33
- scalapy % Test ,
34
- scalaTest % Test
35
- ),
36
- Test / fork := true
34
+ " org.scala-lang.modules" %%% " scala-collection-compat" % scalaCollectionCompatVersion,
35
+ " org.scalatest" %%% " scalatest" % scalaTestVersion % Test ,
36
+ " me.shadaj" %%% " scalapy-core" % scalapyVersion % Test
37
+ )
37
38
)
38
- .settings(
39
- semanticdbEnabled := true ,
40
- semanticdbVersion := scalafixSemanticdb.revision,
39
+ .jvmSettings(
40
+ crossScalaVersions := Seq (scala212, scala213, scala3),
41
+ Test / fork := true ,
42
+ semanticdbEnabled := true ,
43
+ semanticdbVersion := scalafixSemanticdb.revision,
41
44
scalacOptions += {
42
45
CrossVersion .partialVersion(scalaVersion.value) match {
43
46
case Some ((2 , 13 )) => " -Wunused:imports"
@@ -46,9 +49,8 @@ lazy val root = project
46
49
}
47
50
}
48
51
)
49
- .settings(
50
- sonatypeCredentialHost := " s01.oss.sonatype.org" ,
51
- sonatypeRepository := " https://s01.oss.sonatype.org/service/local"
52
+ .nativeSettings(
53
+ crossScalaVersions := Seq (scala212, scala213)
52
54
)
53
55
54
56
lazy val docs = project
@@ -59,4 +61,4 @@ lazy val docs = project
59
61
" PYTHON" -> " /usr/bin/python3"
60
62
)
61
63
)
62
- .dependsOn(root)
64
+ .dependsOn(root.jvm )
0 commit comments