forked from iheartradio/play-swagger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
44 lines (37 loc) · 1.39 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
organization in ThisBuild := "com.iheart"
resolvers += Resolver.bintrayRepo("scalaz", "releases")
lazy val noPublishSettings = Seq(
publish := (),
publishLocal := (),
publishArtifact := false
)
lazy val root = project.in(file("."))
.aggregate(playSwagger, sbtPlaySwagger)
.settings(sourcesInBase := false)
.settings(noPublishSettings:_*)
lazy val playSwagger = project.in(file("core"))
.settings(Publish.coreSettings ++ Format.settings ++ Testing.settings)
.settings(
name := "play-swagger",
libraryDependencies ++= Dependencies.playTest ++
Dependencies.playRoutesCompiler ++
Dependencies.playJson ++
Dependencies.test ++
Dependencies.yaml,
scalaVersion := "2.11.11"
)
lazy val sbtPlaySwagger = project.in(file("sbtPlugin"))
.settings(Publish.sbtPluginSettings ++ Format.settings ++ ScriptedTesting.settings)
.settings(
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.0.6" % Provided),
addSbtPlugin("com.typesafe.sbt" % "sbt-web" % "1.3.0" % Provided))
.enablePlugins(BuildInfoPlugin)
.settings(
buildInfoKeys := Seq[BuildInfoKey](name, version),
buildInfoPackage := "com.iheart.playSwagger",
name := "sbt-play-swagger",
description := "sbt plugin for play swagger spec generation",
sbtPlugin := true,
scalaVersion := "2.10.6",
scripted := scripted.dependsOn(publishLocal in playSwagger).evaluated
)