-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
70 lines (65 loc) · 1.91 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
import sbt._
import sbtcrossproject.CrossPlugin.autoImport.crossProject
val scala213 = "2.13.10"
val scala3 = "3.3.0"
lazy val projectName = "cssminifier"
val githubId = "i10416"
resolvers ++= Resolver.sonatypeOssRepos("snapshots")
// WARN: Make sure build.sbt does not define any of the following settings(https://github.com/sbt/sbt-ci-release)
// todo: add task to create github repository from this
inThisBuild(
Seq(
versionScheme := Some("early-semver"),
organization := "dev.i10416",
licenses := List(
"Apache-2.0" -> url("https://www.apache.org/licenses/LICENSE-2.0")
),
homepage := Some(url(s"https://github.com/$githubId/$projectName")),
developers := List(
Developer(
githubId,
"i10416",
url(s"https://github.com/$githubId")
)
),
sonatypeCredentialHost := "s01.oss.sonatype.org",
sonatypeRepository := "https://s01.oss.sonatype.org/service/local",
scalacOptions ++= Seq(
"-feature",
"-deprecation",
"-unchecked",
"-language:higherKinds",
"-encoding",
"utf-8"
)
)
)
lazy val root = project
.in(file("."))
.aggregate(lib.js, lib.jvm, lib.native)
.settings(
publish / skip := true
)
lazy val lib = crossProject(JSPlatform, JVMPlatform, NativePlatform)
.in(file("."))
.settings(
libraryDependencies ++= Deps.shared.value,
name := projectName,
scalaVersion := scala213
)
.jsSettings(
crossScalaVersions := Seq(scala213, scala3),
libraryDependencies += ("org.scalameta" %%% "munit" % "1.0.0-M7") % Test
)
.jvmSettings(
crossScalaVersions := Seq(scala213, scala3),
libraryDependencies += ("org.scalameta" %%% "munit" % "1.0.0-M7") % Test
)
.nativeSettings(
crossScalaVersions := Seq(scala213, scala3),
libraryDependencies ++=
Seq(
"org.scalameta" %%% "munit" % "1.0.0-M7" % Test
)
)