-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.sbt
37 lines (27 loc) · 1.03 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
import scala.sys.process._
name := "sbt-swagger-models"
organization := "io.grhodes.sbt"
version := "git describe --tags --dirty --always".!!.stripPrefix("v").trim.replace("-dirty", "-SNAPSHOT")
sbtVersion in Global := "1.2.8"
scalaVersion := "2.12.8"
enablePlugins(SbtPlugin)
resolvers += Resolver.bintrayRepo("grahamar", "maven")
libraryDependencies ++= Seq(
"io.swagger.codegen.v3" % "swagger-codegen" % "3.0.8",
"io.grhodes" %% "simple-scala-generator" % "1.1.4",
"org.scalactic" %% "scalactic" % "3.0.1" % Test,
"org.scalatest" %% "scalatest" % "3.0.1" % Test
)
scalacOptions ++= List("-unchecked")
publishMavenStyle := false
bintrayRepository := "sbt-plugins"
bintrayPackageLabels := Seq("sbt","plugin")
licenses += ("MIT", url("http://opensource.org/licenses/MIT"))
initialCommands in console := """import io.grhodes.sbt.swagger.models._"""
// set up 'scripted; sbt plugin for testing sbt plugins
scriptedBufferLog := false
scriptedLaunchOpts ++= Seq(
"-Xmx1024M",
"-XX:MaxPermSize=256M",
s"-Dplugin.version=${version.value}"
)