forked from nulab/play2-oauth2-provider
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
62 lines (59 loc) · 2.23 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
val playVersion = "2.6.7"
val commonDependenciesInTestScope = Seq(
"org.scalatest" %% "scalatest" % "3.0.5" % "test",
"ch.qos.logback" % "logback-classic" % "1.2.3" % "test"
)
val unusedWarnings = Seq(
"-Ywarn-unused",
"-Ywarn-unused-import"
)
lazy val scalaOAuth2ProviderSettings =
Defaults.coreDefaultSettings ++
Seq(
organization := "com.nulab-inc",
scalaVersion := "2.12.6",
crossScalaVersions := Seq("2.11.12", "2.12.6"),
scalacOptions ++= Seq("-deprecation", "-unchecked", "-feature"),
scalacOptions ++= unusedWarnings,
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,
publishArtifact in Test := false,
pomIncludeRepository := { x => 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:[email protected]: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 =>
scalacOptions in (c, console) --= unusedWarnings
)
lazy val root = (project in file("."))
.settings(
name := "play2-oauth2-provider",
description := "Support scala-oauth2-core library on Playframework Scala",
version := "1.3.1-SNAPSHOT",
libraryDependencies ++= Seq(
"com.nulab-inc" %% "scala-oauth2-core" % "1.3.0" % "provided",
"com.typesafe.play" %% "play" % playVersion % "provided",
"com.typesafe.play" %% "play-test" % playVersion % "test"
) ++ commonDependenciesInTestScope
)