-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
30 lines (18 loc) · 877 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
name := "sbt-inspectr"
organization := "com.eed3si9n"
version := "0.0.2"
CrossBuilding.crossSbtVersions := Seq("0.11.3", "0.11.2")
scalacOptions := Seq("-deprecation", "-unchecked")
publishArtifact in (Compile, packageBin) := true
publishArtifact in (Test, packageBin) := false
publishArtifact in (Compile, packageDoc) := false
publishArtifact in (Compile, packageSrc) := 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")