This repository has been archived by the owner on Apr 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathbuild.sbt
83 lines (77 loc) · 2.24 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
77
78
79
80
81
82
83
lazy val root = (project in file("."))
.aggregate(`sbt-play-gulp`, `play-gulp`)
.enablePlugins(GitVersioning)
.settings(
inThisBuild(
Seq(
crossSbtVersions := Seq("0.13.16", "1.1.1"),
scalafmtOnCompile := true
)),
scalacOptions ++= Seq(
"-deprecation",
"-unchecked",
"-unchecked",
"-Xlint",
"-Ywarn-dead-code",
"-Ywarn-numeric-widen",
"-Ywarn-unused",
"-Ywarn-unused-import",
"-Ywarn-value-discard",
"-encoding",
"utf8"
)
)
lazy val `sbt-play-gulp` = (project in file("sbt-play-gulp"))
.settings(
name := "sbt-play-gulp",
sbtPlugin := true,
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.6.11"),
commonSettings
)
lazy val `play-gulp` = (project in file("play-gulp"))
.enablePlugins(PlayScala)
.settings(
name := "play-gulp",
commonSettings
)
lazy val commonSettings = Seq(
description := "An SBT plugin to use Gulp for static assets compilation in Play Framework projects",
organization := "com.github.mmizutani",
licenses += ("Apache-2.0", url(
"https://www.apache.org/licenses/LICENSE-2.0.html")),
homepage := Some(url("https://github.com/mmizutani/sbt-play-gulp"))
) ++ mavenPublishSettings ++ scriptedScalatestSettings
lazy val bintrayPublishSettings = Seq(
publishMavenStyle := false,
bintrayOrganization := None,
bintrayRepository := "sbt-plugins",
bintrayPackage := "sbt-play-gulp"
)
lazy val mavenPublishSettings = Seq(
pomIncludeRepository := { _ =>
false
},
scmInfo := Some(
ScmInfo(url("https://github.com/mmizutani/sbt-play-gulp"),
"scm:[email protected]:mmizutani/sbt-play-gulp.git")),
publishMavenStyle := true,
publishTo := Some(
"releases" at "https://oss.sonatype.org/service/local/staging/deploy/maven2"),
publishArtifact in Test := false,
developers := List(
Developer(
id = "minorumizutani",
name = "Minoru Mizutani",
email = "[email protected]",
url = url("https://github.com/mmizutani")
)
)
)
lazy val scriptedScalatestSettings = Seq(
scriptedBufferLog := false,
scriptedLaunchOpts := {
scriptedLaunchOpts.value ++ Seq(
"-Xmx1024M",
"-Dplugin.version=" + (version in ThisBuild).value)
}
)