forked from john-bernardo1/sbt-css-compress
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
52 lines (38 loc) · 1.28 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
organization := "de.lolhens"
name := "sbt-css-compress"
version := "0.0.1-SNAPSHOT"
enablePlugins(SbtPlugin)
addSbtPlugin("com.github.sbt" %% "sbt-web" % "1.5.0")
libraryDependencies += "com.yahoo.platform.yui" % "yuicompressor" % "2.4.8"
licenses += ("Apache-2.0", url("https://www.apache.org/licenses/LICENSE-2.0"))
homepage := Some(url("https://github.com/LolHens/sbt-css-compress"))
scmInfo := Some(
ScmInfo(
url("https://github.com/LolHens/sbt-css-compress"),
"scm:[email protected]:LolHens/sbt-css-compress.git"
)
)
developers := List(
Developer(id = "LolHens", name = "Pierre Kisters", email = "[email protected]", url = url("https://github.com/LolHens/"))
)
scriptedLaunchOpts ++= Seq(
"-Xmx1024M",
"-Dplugin.version=" + version.value
)
scriptedBufferLog := false
Compile / doc / sources := Seq.empty
version := {
val tagPrefix = "refs/tags/"
sys.env.get("CI_VERSION").filter(_.startsWith(tagPrefix)).map(_.drop(tagPrefix.length)).getOrElse(version.value)
}
publishMavenStyle := true
publishTo := sonatypePublishToBundle.value
credentials ++= (for {
username <- sys.env.get("SONATYPE_USERNAME")
password <- sys.env.get("SONATYPE_PASSWORD")
} yield Credentials(
"Sonatype Nexus Repository Manager",
"oss.sonatype.org",
username,
password
)).toList