-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathbuild.sbt
23 lines (22 loc) · 1.17 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
lazy val roboVMVersion = settingKey[String]("RoboVM Version against which this plugin is built")
lazy val sbtRoboVM = (project in file(".")).
enablePlugins(BuildInfoPlugin).
settings(
name := "sbt-robovm",
roboVMVersion := "1.12.0",
licenses += ("BSD 3-Clause", url("http://opensource.org/licenses/BSD-3-Clause")),
organization := "org.roboscala",
version := roboVMVersion.value,
sbtPlugin := true,
publishMavenStyle := false,
bintrayOrganization := None,
bintrayRepository := "sbt-plugins",
scalacOptions ++= Seq("-unchecked", "-deprecation", "-Xcheckinit", "-Xfatal-warnings"),
javacOptions ++= Seq("-source", "6", "-target", "6"),
resolvers ++= {if (roboVMVersion.value.contains("-SNAPSHOT")) Seq(Resolver.sonatypeRepo("snapshots")) else Seq()},
libraryDependencies += "org.robovm" % "robovm-dist-compiler" % roboVMVersion.value,
libraryDependencies += "org.robovm" % "robovm-maven-resolver" % roboVMVersion.value,
libraryDependencies += "org.robovm" % "robovm-templater" % roboVMVersion.value,
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion, roboVMVersion),
buildInfoPackage := "sbtrobovm"
)