-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
47 lines (44 loc) · 1.14 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
// scoverage = code coverage
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'org.scoverage:gradle-scoverage:1.0.9'
classpath group: 'net.coacoas.gradle', name: 'gradle-ensime', version: '0.1.10'
}
}
// scalatest = unit testing framework
plugins {
id "com.github.maiflai.scalatest" version "0.9"
}
apply plugin: 'scoverage'
ext {
scalaLibraryVersion = "2.11.7"
}
repositories {
mavenCentral()
}
apply plugin: 'scala' // basic scala support
apply plugin: 'ensime'
dependencies {
compile 'org.scala-lang:scala-library:2.11.7'
testCompile 'org.scalatest:scalatest_2.11:2+'
testCompile 'org.scalamock:scalamock-scalatest-support_2.10:3.2.2'
testRuntime 'org.pegdown:pegdown:1.1.0'
scoverage 'org.scoverage:scalac-scoverage-plugin_2.11:1.1.0', 'org.scoverage:scalac-scoverage-runtime_2.11:1.1.0'
}
apply plugin: "com.github.maiflai.scalatest"
test {
tags {
exclude 'xander.tags.CoverageAcceptanceTest'
exclude 'xander.tags.UnitTest'
}
}
testScoverage {
tags {
exclude 'xander.tags.NonCoverageAcceptanceTest'
}
}