source: launchers/build.sbt @ 27a0d4e

Last change on this file since 27a0d4e was d4dd0ea, checked in by meeh <meeh@…>, 3 years ago

Adjustments in Scala code to adopt to work with the Obj-C++ code.

  • Property mode set to 100644
File size: 1.5 KB
RevLine 
[8adf55a]1import sbt._
2import Keys._
3
[4f47fab]4scalaVersion in Global := "2.11.11"
[8c10ec9]5
6resolvers ++= Seq(
7  DefaultMavenRepository,
8  Resolver.mavenLocal,
9  Resolver.sonatypeRepo("releases"),
10  Resolver.typesafeRepo("releases"),
11  Resolver.sbtPluginRepo("releases")
12)
13
14lazy val commonSettings = Seq(
15  organization := "net.i2p",
16  scalaVersion := "2.11.11", // We have to use Scala 11 as long as we're going to support JRE 1.7
[8adf55a]17  version      := "0.1.0-SNAPSHOT",
18  maintainer := "Meeh <mikalv@mikalv.net>",
19  packageSummary := "The Invisible Internet Project",
20  packageDescription := "Blabla"
[8c10ec9]21)
22
[a3a8ee1]23lazy val common = (project in file("common"))
24  .settings(
25    commonSettings,
26    name         := "LauncherCommon"
27  )
[8c10ec9]28
29lazy val browserbundle = (project in file("browserbundle"))
30  .settings(
31    commonSettings,
32    name         := "RouterLaunchApp",
33    assemblyJarName in assembly := s"${name.value}-${version.value}.jar",
[f6c8e44]34    mainClass in assembly := Some("net.i2p.RouterLauncherApp"),
35    libraryDependencies ++= Seq(
36      "org.json4s" %% "json4s-native" % "3.5.3"
37    )
[a3a8ee1]38  ).dependsOn(common)
[8c10ec9]39
40lazy val macosx = (project in file("macosx"))
41  .settings(
42    commonSettings,
[d4dd0ea]43    name         := "RouterPack.jar",
[70e994fc]44    mainClass in assembly := Some("net.i2p.launchers.osx.LauncherAppMain")
[a3a8ee1]45  ).dependsOn(common)
[8c10ec9]46
47
48lazy val root = (project in file("."))
[a3a8ee1]49  .aggregate(common, browserbundle, macosx)
[8c10ec9]50
[4f47fab]51scalacOptions in Compile := Seq("-deprecated")
[8c10ec9]52
53fork := true
54
55run / javaOptions += "-Xmx512M"
56run / connectInput := true
[f6c8e44]57
Note: See TracBrowser for help on using the repository browser.