-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.sbt
64 lines (61 loc) · 2.3 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
val playVersion = "3.0.0"
val commonDependenciesInTestScope = Seq(
"org.scalatest" %% "scalatest" % "3.2.17" % "test",
"ch.qos.logback" % "logback-classic" % "1.4.11" % "test"
)
def unusedWarnings(scalaVersion: String) =
Seq("-Wunused:imports")
lazy val scalaOAuth2ProviderSettings =
Defaults.coreDefaultSettings ++
Seq(
organization := "com.nulab-inc",
scalaVersion := "3.3.1",
crossScalaVersions ++= Seq("2.13.12"),
scalacOptions ++= Seq("-deprecation", "-unchecked", "-feature"),
scalacOptions ++= unusedWarnings(scalaVersion.value),
publishTo := {
val v = version.value
val nexus = "https://oss.sonatype.org/"
if (v.trim.endsWith("SNAPSHOT"))
Some("snapshots" at nexus + "content/repositories/snapshots")
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
},
publishMavenStyle := true,
Test / publishArtifact := false,
pomIncludeRepository := { _ =>
false
},
pomExtra := <url>https://github.com/nulab/play2-oauth2-provider</url>
<licenses>
<license>
<name>MIT License</name>
<url>http://www.opensource.org/licenses/mit-license.php</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>https://github.com/nulab/play2-oauth2-provider</url>
<connection>scm:git:git@github.com:nulab/play2-oauth2-provider.git</connection>
</scm>
<developers>
<developer>
<id>tsuyoshizawa</id>
<name>Tsuyoshi Yoshizawa</name>
<url>https://github.com/tsuyoshizawa</url>
</developer>
</developers>
) ++ Seq(Compile, Test).flatMap(c =>
c / console / scalacOptions --= unusedWarnings(scalaVersion.value)
)
lazy val root = (project in file("."))
.settings(
scalaOAuth2ProviderSettings,
name := "play2-oauth2-provider",
description := "Support scala-oauth2-core library on Play Framework Scala",
version := "2.0.0",
libraryDependencies ++= Seq(
"com.nulab-inc" %% "scala-oauth2-core" % "1.6.0" % "provided",
"org.playframework" %% "play" % playVersion % "provided",
"org.playframework" %% "play-test" % playVersion % "test"
) ++ commonDependenciesInTestScope
)