forked from sbt/sbt-dirty-money
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
49 lines (29 loc) · 1.47 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
sbtPlugin := true
name := "sbt-dirty-money"
organization := "com.eed3si9n"
version := "0.0.1"
description := "sbt plugin for cleaning Ivy2 cache"
licenses := Seq("MIT License" -> url("https://github.com/sbt/sbt-dirty-money/blob/master/LICENSE"))
scalacOptions := Seq("-deprecation", "-unchecked")
publishArtifact in (Compile, packageBin) := true
publishArtifact in (Test, packageBin) := false
publishArtifact in (Compile, packageDoc) := false
publishArtifact in (Compile, packageSrc) := false
// seq(ScriptedPlugin.scriptedSettings: _*)
// seq(lsSettings :_*)
// LsKeys.tags in LsKeys.lsync := Seq("sbt", "utility")
// licenses in LsKeys.lsync <<= licenses
publishMavenStyle := true
publishTo <<= version { (v: String) =>
if(v endsWith "-SNAPSHOT") Some("Scala Tools Nexus" at "http://nexus.scala-tools.org/content/repositories/snapshots/")
else Some("Scala Tools Nexus" at "http://nexus.scala-tools.org/content/repositories/releases/")
}
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials")
publishMavenStyle := false
publishTo <<= (version) { version: String =>
val scalasbt = "http://scalasbt.artifactoryonline.com/scalasbt/"
val (name, u) = if (version.contains("-SNAPSHOT")) ("sbt-plugin-snapshots", scalasbt+"sbt-plugin-snapshots")
else ("sbt-plugin-releases", scalasbt+"sbt-plugin-releases")
Some(Resolver.url(name, url(u))(Resolver.ivyStylePatterns))
}
credentials += Credentials(Path.userHome / ".ivy2" / ".sbtcredentials")