forked from sbt/sbt-buildinfo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sbt
More file actions
47 lines (27 loc) · 1.29 KB
/
Copy pathbuild.sbt
File metadata and controls
47 lines (27 loc) · 1.29 KB
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
sbtPlugin := true
name := "sbt-buildinfo"
organization := "com.eed3si9n"
version := "0.2.6-SNAPSHOT"
sbtVersion in Global := "0.13.0"
scalaVersion in Global := "2.10.2"
scalacOptions := Seq("-unchecked", "-deprecation")
description := "sbt plugin to generate build info"
licenses := Seq("MIT License" -> url("https://github.com/sbt/sbt-buildinfo/blob/master/LICENSE"))
publishArtifact in (Compile, packageBin) := true
publishArtifact in (Test, packageBin) := false
publishArtifact in (Compile, packageDoc) := true
publishArtifact in (Compile, packageSrc) := true
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")
lsSettings
LsKeys.tags in LsKeys.lsync := Seq("sbt", "codegen")
// CrossBuilding.crossSbtVersions := Seq("0.11.3", "0.11.2" ,"0.12.0-Beta2")
ScriptedPlugin.scriptedSettings
// CrossBuilding.scriptedSettings
scriptedLaunchOpts ++= Seq("-Xmx1024M", "-XX:MaxPermSize=256M")