-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
72 lines (56 loc) · 1.74 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
71
72
aether.AetherKeys.aetherOldVersionMethod := true
ThisBuild / scalaVersion := "3.4.1"
ThisBuild / organization := "cc.sukazyo"
ThisBuild / organizationName := "Sukazyo Workshop"
ThisBuild / organizationHomepage := Some(url("https://sukazyo.cc"))
ThisBuild / developers := List(
Developer(
id = "Eyre_S",
name = "A.C.Sukazyo Eyre",
email = "[email protected]",
url = url("https://sukazyo.sukazyo.cc")
)
)
ThisBuild / licenses += "MIT" -> url("https://github.com/suk-ws/da4a/blob/master/LICENSE")
ThisBuild / version := ProjectMetadata.version
ThisBuild / versionScheme := Some("semver-spec")
ThisBuild / resolvers ++= ProjectMetadata.resolvers
val encoding = "UTF-8"
val javaTarget = "1.8"
val javaTarget_scala = "8"
lazy val root = (project in file("."))
.settings(
name := "da4a",
description :=
"""The Standard Library Extension from Sukazyo Workshop.""".stripMargin,
idePackagePrefix := Some("cc.sukazyo.da4a"),
crossPaths := false,
moduleName := ProjectMetadata.package_name,
idePackagePrefix := Some({ProjectMetadata.package_id}),
libraryDependencies ++= ProjectMetadata.dependencies,
Compile / doc / scalacOptions ++= Seq(
"-private",
),
scalacOptions ++= Seq(
"-language:postfixOps",
"-language:experimental.macros",
"-language:implicitConversions",
"-language:noAutoTupling",
"-language:canThrow",
"-Yexplicit-nulls",
"-Ysafe-init",
"-unchecked",
"-explain",
"-explain-types",
"-encoding", encoding,
"-release", javaTarget_scala,
),
javacOptions ++= Seq(
"-encoding", encoding,
"-source", javaTarget,
"-target", javaTarget,
),
autoAPIMappings := true,
publishTo := ProjectMetadata.publishTo,
credentials ++= ProjectMetadata.publishCredentials,
)