-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
65 lines (54 loc) · 1.35 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
56
57
58
59
60
61
62
63
64
65
plugins {
id 'java'
id 'scala'
id 'jacoco'
}
sourceCompatibility = 1.8
targetCompatibility = 1.11
group 'rocks.pizzaandcoffee'
version '0.0.0'
sourceSets {
main {
scala {
srcDirs = ['src/main/scala']
}
}
test {
scala {
srcDirs = ['src/test/scala']
}
}
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.scala-lang:scala-library:2.13.2'
testImplementation 'org.scalatest:scalatest_2.13:3.2.1'
testImplementation group: 'org.scalatestplus', name: 'scalatestplus-junit_2.13', version: '1.0.0-M2'
testImplementation 'junit:junit:4.13'
compile group: 'org.json4s', name: 'json4s-native_2.13', version: '3.7.0-M6'
compile group: 'org.scalaj', name: 'scalaj-http_2.13', version: '2.4.2'
}
test {
useJUnit()
maxHeapSize = '1G'
testLogging {
events "passed", "skipped", "failed"
}
finalizedBy jacocoTestReport
}
jacocoTestReport {
dependsOn test
}
task classpath {
doLast {
println sourceSets.main.runtimeClasspath.asPath
}
}
// rust tests with the scala test runner for better error messages
task runSpec(dependsOn: ['testClasses'], type: JavaExec) {
main = 'org.scalatest.tools.Runner'
args = ['-R', 'build/classes/scala/test', '-o']
classpath = sourceSets.test.runtimeClasspath
}