-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
50 lines (41 loc) · 1.6 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
name := "pureconfig-javanet"
organization := "nl.gn0s1s"
startYear := Some(2021)
homepage := Some(url("https://github.com/philippus/pureconfig-javanet"))
licenses += ("MPL-2.0", url("https://www.mozilla.org/MPL/2.0/"))
developers := List(
Developer(
id = "philippus",
name = "Philippus Baalman",
email = "",
url = url("https://github.com/philippus")
)
)
scalaVersion := "2.13.15"
crossScalaVersions += "3.3.4"
ThisBuild / versionScheme := Some("semver-spec")
ThisBuild / versionPolicyIntention := Compatibility.BinaryCompatible
Compile / packageBin / packageOptions += Package.ManifestAttributes(
"Automatic-Module-Name" -> "nl.gn0s1s.pureconfig.module.javanet"
)
Test / unmanagedSourceDirectories ++= {
(Test / unmanagedSourceDirectories).value.map { dir =>
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, 13)) => file(dir.getPath ++ "-2.13")
case _ => file(dir.getPath ++ "-3+")
}
}
}
scalacOptions ++= (CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, 13)) => Seq("-Xsource:3", "-deprecation")
case _ => Seq("-deprecation")
})
val pureConfigVersion = "0.17.7"
libraryDependencies += (CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, 13)) => "com.github.pureconfig" %% "pureconfig" % pureConfigVersion % Provided
case _ => "com.github.pureconfig" %% "pureconfig-core" % pureConfigVersion % Provided
})
libraryDependencies ++= Seq(
"commons-validator" % "commons-validator" % "1.9.0",
"org.scalameta" %% "munit" % "1.0.2" % Test
)