-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
56 lines (46 loc) · 1.55 KB
/
build.gradle
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
55
apply plugin: 'scala'
apply plugin: 'eclipse'
repositories {
mavenCentral()
}
ext {
// Library versions
scala = '2.12'
scalaVersion = scala + '.1'
akkaVersion = '2.5.3'
akkaHttpVersion = '10.0.8'
testNGVersion = '6.11'
scalatestVersion = '3.0.1'
mockitoVersion = '1.10.19'
// Settings
skipTests = false
}
dependencies {
compile group: 'org.scala-lang', name: 'scala-library', version: scalaVersion
compile group: 'com.typesafe.akka', name: 'akka-actor_' + scala, version: akkaVersion
compile group: 'com.typesafe.akka', name: 'akka-stream_' + scala, version: akkaVersion
compile group: 'com.typesafe.akka', name: 'akka-http-core_' + scala, version: akkaHttpVersion
compile group: 'org.testng', name: 'testng', version: testNGVersion
compile group: 'org.scalatest', name: 'scalatest_' + scala, version: scalatestVersion
compile group: 'com.typesafe.akka', name: 'akka-testkit_' + scala, version: akkaVersion
compile group: 'com.typesafe.akka', name: 'akka-stream-testkit_' + scala, version: akkaVersion
compile group: 'org.mockito', name: 'mockito-core', version: mockitoVersion
}
tasks.withType(ScalaCompile) {
scalaCompileOptions.additionalParameters = ["-feature"] // Displays feature warnings
}
test {
onlyIf {!skipTests}
testLogging {
exceptionFormat "full"
events "passed", "skipped", "failed"
}
}
tasks.withType(Test) {
//makes the standard streams (err and out) visible at console when running tests
testLogging.showStandardStreams = true
useTestNG() {
useDefaultListeners = true
suites 'src/test/resources/testng-unit.xml'
}
}