This repository has been archived by the owner on Aug 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
76 lines (65 loc) · 2.04 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
73
74
75
76
// === scala settings ===
inThisBuild(
List(
scalaVersion := "2.13.10",
scalacOptions ++= List(
"-Ywarn-unused",
"-Yrangepos",
"-Ywarn-macros:after"
),
semanticdbEnabled := true,
semanticdbVersion := scalafixSemanticdb.revision,
scalafixScalaBinaryVersion := CrossVersion.binaryScalaVersion(scalaVersion.value),
scalafmtOnCompile := true
)
)
// === project info ===
inThisBuild(
List(
organization := "io.github.stoneream",
homepage := Some(url("https://github.com/stoneream/token-receiver")),
licenses := List("Apache License 2.0" -> url("https://raw.githubusercontent.com/stoneream/token-receiver/main/LICENSE")),
developers := List(
Developer(
"stoneream",
"Ishikawa Ryuto",
url("https://github.com/stoneream")
)
)
)
)
// === publish settings ===
sonatypeCredentialHost := "s01.oss.sonatype.org"
sonatypeRepository := "https://s01.oss.sonatype.org/service/local"
lazy val publishSettings = Seq(
publish / skip := false,
Test / publishArtifact := false,
versionScheme := Some("early-semver")
)
// === project setting ===
lazy val root = (project in file(".")).settings(
name := "token-receiver",
publish / skip := true
).aggregate(core, example)
lazy val core = (project in file("core")).settings(
name := "token-receiver-core",
libraryDependencies ++= Seq(
"ch.qos.logback" % "logback-classic" % "1.4.5",
"com.typesafe.scala-logging" %% "scala-logging" % "3.9.5"
),
publishSettings
)
lazy val sttpVersion = "3.8.8"
lazy val circeVersion = "0.14.3"
lazy val example = (project in file("example")).settings(
name := "token-receiver-example",
libraryDependencies ++= Seq(
"com.softwaremill.sttp.client3" %% "core" % sttpVersion,
"com.softwaremill.sttp.client3" %% "circe" % sttpVersion,
"io.circe" %% "circe-generic" % circeVersion,
"io.circe" %% "circe-generic-extras" % circeVersion,
"io.circe" %% "circe-literal" % circeVersion,
),
publish / skip := true
).dependsOn(core)