forked from bmc/sbt-izpack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
70 lines (47 loc) · 2.07 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
// ---------------------------------------------------------------------------
// SBT 0.10.x Build File for SBT IzPack Plugin
//
// Copyright (c) 2010-2011 Brian M. Clapper
//
// See accompanying license file for license information.
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
// Basic settings
name := "sbt-izpack"
version := "0.3.4.3"
sbtPlugin := true
organization := "org.clapper"
licenses := Seq("BSD-like" ->
url("http://software.clapper.org/sbt-izpack/license.html")
)
description := "SBT plugin to generate an IzPack installer"
// ---------------------------------------------------------------------------
// Additional compiler options and plugins
scalacOptions ++= Seq("-deprecation", "-unchecked")
crossScalaVersions := Seq("2.9.2", "2.9.1")
seq(lsSettings :_*)
(LsKeys.tags in LsKeys.lsync) := Seq("izpack", "installer")
(description in LsKeys.lsync) <<= description(d => d)
// ---------------------------------------------------------------------------
// Other dependendencies
// External deps
libraryDependencies ++= Seq(
"org.codehaus.izpack" % "izpack-standalone-compiler" % "5.0.0-beta11" % "compile",
"org.yaml" % "snakeyaml" % "1.9"
)
libraryDependencies += "org.clapper" %% "grizzled-scala" % "1.0.13"
// ---------------------------------------------------------------------------
// Publishing criteria
publishTo <<= (version) { version: String =>
val scalasbt = "http://scalasbt.artifactoryonline.com/scalasbt/"
val (name, url) = if (version.contains("-SNAPSHOT"))
("sbt-plugin-snapshots", scalasbt+"sbt-plugin-snapshots")
else
("sbt-plugin-releases", scalasbt+"sbt-plugin-releases")
Some(Resolver.url(name, new URL(url))(Resolver.ivyStylePatterns))
}
publishMavenStyle := false
publishArtifact in (Compile, packageBin) := true
publishArtifact in (Test, packageBin) := false
publishArtifact in (Compile, packageDoc) := false
publishArtifact in (Compile, packageSrc) := false