-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
executable file
·54 lines (41 loc) · 1.79 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
name := "freeton-sdk-client-scala-binding"
version := "1.37.1-M1"
organization := "com.dancingcode"
lazy val scala212 = "2.12.12"
lazy val scala213 = "2.13.3"
scalaVersion := scala212
// lazy val crossScalaVersions = List(scala212, scala213)
libraryDependencies ++= Seq(
"org.slf4j" % "slf4j-api" % "2.0.0",
"ch.qos.logback" % "logback-classic" % "1.4.0" % Provided,
"org.scalatest" %% "scalatest" % "3.2.12" % Test
)
libraryDependencies ++= Seq("circe-core", "circe-generic", "circe-parser", "circe-literal", "circe-generic-extras").map("io.circe" %% _ % "0.14.2")
Compile / scalacOptions ++= Seq(
"-Xlog-reflective-calls",
"-Xlint",
"-encoding",
"UTF-8",
"-deprecation",
"-feature",
"-unchecked",
"-Ywarn-numeric-widen",
"-Ywarn-value-discard",
"-Yrangepos"
)
Test / fork := true
// settings for Sonatype
homepage := Some(url("https://github.com/slavaschmidt/ton-sdk-client-scala-binding"))
scmInfo := Some(ScmInfo(url("https://github.com/slavaschmidt/ton-sdk-client-scala-binding"), "git@github.com:slavaschmidt/ton-sdk-client-scala-binding.git"))
developers := List(Developer("slasch", "Slava Schmidt", "slavaschmidt@gmx.de", url("https://github.com/slavaschmidt")))
licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0"))
publishMavenStyle := true
// Add sonatype repository settings
publishTo := Some(if (isSnapshot.value) Opts.resolver.sonatypeSnapshots else Opts.resolver.sonatypeStaging)
credentials += Credentials(Path.userHome / ".sbt" / "sonatype_credentials")
Test / envVars := Map(
"LD_LIBRARY_PATH" -> (Compile / resourceDirectory).value.getAbsolutePath,
"PATH" -> (Compile / resourceDirectory).value.getAbsolutePath
)
// To test against all versions: `> + test`
// To cross-publish: `> ; +publishSigned; sonatypeRelease`