-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
54 lines (46 loc) · 2.15 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
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2011-2020 ETH Zurich.
// Import general settings from Silver
lazy val silver = project in file("silver")
// specific project settings
lazy val silver_sif_extension = (project in file("."))
.dependsOn(silver % "compile->compile;test->test")
.settings(
// General settings
name := "silver-sif-extension",
organization := "viper",
version := "1.1-SNAPSHOT",
// Compilation settings
//libraryDependencies += "com.typesafe.scala-logging" %% "scala-logging" % "3.9.0",
//libraryDependencies += "org.apache.commons" % "commons-pool2" % "2.6.0",
// Run settings
run / javaOptions += "-Xss128m",
// Test settings
Test / javaOptions ++= (run / javaOptions).value,
// Options passed to JVMs forked by test-related Sbt command.
// See http://www.scala-sbt.org/0.12.4/docs/Detailed-Topics/Forking.html
// In contrast to what the documentation states, it seemed
// that neither were the options passed to Sbt's JVM forwarded
// to forked JVMs, nor did "javaOptions in (Test,run)"
// work for me (Malte, using Sbt 0.12.4).
// You can inspect the settings in effect using via
// "show javaOptions" on the Sbt console.
fork := true,
// Fork Silicon when run and tested. Avoids problems with file
// handlers on Windows 7 that remain open until Sbt is closed,
// which makes it very annoying to work on test files.
// There have been reports about problems with forking. If you
// experience strange problems, disable forking and try again.
// Malte 2013-11-18: Jenkins failed with
// "OutOfMemoryError: unable to create new native thread".
// Reducing the stack size from 256M to 128M seems to resolve
// the problem and Silicon seems to be fine with less stack.
// Not sure what to do if Silicon really required so much
// stack at some point.
// Assembly settings
assembly / assemblyJarName := "silver-sif-extension.jar",
assembly / test := {},
)