This repository has been archived by the owner on Mar 12, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
54 lines (41 loc) · 1.64 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
name := "gui-state-machine-api"
organization := "de.retest"
scalaVersion := "2.12.8"
/*
* retest-sut-api provides a package and an object with the name a etc.
* We have to resolve the conflict.
*/
scalacOptions := Seq("-unchecked", "-deprecation", "-feature", "-Yresolve-term-conflict:package")
// Disable using the Scala version in output paths and artifacts:
crossPaths := false
// Fixes serialization issues:
fork := true
// Resolve dependencies from ReTest Nexus:
resolvers += "ReTest Nexus" at "https://nexus.retest.org/repository/all/"
// Dependencies to represent states and actions:
libraryDependencies += "de.retest" % "surili-commons" % "0.14.0" % "provided" withSources () withJavadoc () changing ()
// Dependencies to write GML files for yEd:
libraryDependencies += "com.github.systemdir.gml" % "GMLWriterForYed" % "2.1.0"
libraryDependencies += "org.jgrapht" % "jgrapht-core" % "1.0.1"
// Logging:
libraryDependencies += "com.typesafe.scala-logging" %% "scala-logging" % "3.9.0"
// Test frameworks:
libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.5" % "test"
// Format the code:
scalafmtOnCompile := true
// Publish to ReTest Nexus:
publishTo := {
val nexus = "https://nexus.retest.org/repository/"
if (isSnapshot.value) {
Some("snapshots" at nexus + "surili-snapshot")
} else {
Some("releases" at nexus + "surili")
}
}
// Get ReTest Nexus password from environment:
sys.env.get("RETEST_NEXUS_PASSWORD") match {
case Some(password) =>
credentials += Credentials("ReTest Nexus", "nexus.retest.org", "retest", password)
case _ =>
throw new IllegalStateException("Please provide the password for retest-nexus.")
}