forked from sbt/sbt-assembly
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
46 lines (27 loc) · 1.32 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
sbtPlugin := true
name := "sbt-assembly"
organization := "com.eed3si9n"
version := "0.8.2"
CrossBuilding.crossSbtVersions := Seq("0.11.3", "0.11.2" ,"0.12.0-Beta2")
description := "sbt plugin to create a single fat jar"
licenses := Seq("MIT License" -> url("https://github.com/sbt/sbt-assembly/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
lsSettings
LsKeys.tags in LsKeys.lsync := Seq("sbt", "jar")
(externalResolvers in LsKeys.lsync) := Seq(
"sbt-plugin-releases" at "http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases")
// CrossBuilding.scriptedSettings
// ScriptedPlugin.scriptedSettings
// scriptedBufferLog := false
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")