source: launcher/build.sbt @ 86f8d63

Last change on this file since 86f8d63 was 86f8d63, checked in by meeh <meeh@…>, 2 years ago

WIP: Adding most of the launcher code now to the repo, the one for the browser bundle.
Not 100% completely done but ready for commenting/review.

  • Property mode set to 100644
File size: 1.4 KB
Line 
1import sbtassembly.AssemblyPlugin.defaultShellScript
2import sbt.Keys._
3
4
5lazy val root = (project in file("."))
6  .settings(
7    name         := "RouterLaunchApp",
8    organization := "net.i2p",
9    scalaVersion := "2.11.11", // We have to use Scala 11 as long as we're going to support JRE 1.7
10    version      := "0.1.0-SNAPSHOT",
11    assemblyJarName in assembly := s"${name.value}-${version.value}.jar",
12    mainClass in assembly := Some("net.i2p.RouterLauncherApp")
13
14    // This will prepend shebang and become executable, however, it will only work on unix systems and not windows.
15    //assemblyOption in assembly := (assemblyOption in assembly).value.copy(prependShellScript = Some(defaultShellScript))
16  )
17
18resolvers ++= Seq(
19  DefaultMavenRepository,
20  Resolver.mavenLocal,
21  Resolver.sonatypeRepo("releases"),
22  Resolver.typesafeRepo("releases"),
23  Resolver.sbtPluginRepo("releases")
24)
25
26libraryDependencies ++= Seq(
27  "org.json4s" %% "json4s-native" % "3.5.3"
28)
29
30assemblyExcludedJars in assembly := {
31  val donts = List("BOB.jar", "sam.jar", "desktopgui.jar", "i2ptunnel-ui.jar", "i2psnark.jar", "jetty-sslengine.jar")
32  val cp = (fullClasspath in assembly).value
33  cp filter { s => donts.contains(s.data.getName)}
34}
35
36fork := true
37
38run / javaOptions += "-Xmx512M"
39run / connectInput := true
40
41unmanagedBase := baseDirectory.value / ".." / "build"
42unmanagedClasspath in Compile ++= Seq(
43  baseDirectory.value / ".." / "build" / "*.jar"
44)
45
46
Note: See TracBrowser for help on using the repository browser.