forked from indrajitr/sbt-yui-compressor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
30 lines (18 loc) · 1016 Bytes
/
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
sbtPlugin := true
organization := "in.drajit.sbt"
name := "sbt-yui-compressor"
version := "0.2.2-SNAPSHOT"
description := "sbt-yui-compressor is an SBT plugin for YUI Compressor to minify CSS and JavaScript."
licenses += ("Apache License, Version 2.0", url("http://www.apache.org/licenses/LICENSE-2.0.txt"))
scalacOptions ++= DefaultOptions.scalac :+ Opts.compile.deprecation
libraryDependencies += "com.yahoo.platform.yui" % "yuicompressor" % "2.4.7"
ScriptedPlugin.scriptedSettings
publishArtifact in (Compile, packageDoc) := false
publishArtifact in (Compile, packageSrc) := false
publishMavenStyle := false
publishTo <<= (isSnapshot) { iss =>
val (namePrefix, repoBase) = ("sbt-plugin-", "http://scalasbt.artifactoryonline.com/scalasbt/")
val resolver = if (iss) (namePrefix + "snapshots", repoBase + namePrefix + "snapshots")
else (namePrefix + "releases", repoBase + namePrefix + "releases")
Some(Resolver.url(resolver._1, url(resolver._2))(Resolver.ivyStylePatterns))
}