-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.gradle
66 lines (49 loc) · 1.64 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
66
plugins {
id 'java'
id 'maven'
id 'scala'
}
sourceCompatibility = 1.8
group = 'org.chrononaut.ephemera'
version = '1.0-SNAPSHOT'
ext {
javaslangVersion = '2.0.5'
scalaMajorVersion = '2.12'
scalaMinorVersion = '1'
scalaVersion = "${scalaMajorVersion}.${scalaMinorVersion}"
}
repositories {
jcenter()
}
sourceSets.main.java.srcDirs = []
sourceSets.main.scala.srcDir "src/main/java"
dependencies {
// ------------------------------------------------------------
// Platform
compile "org.scala-lang:scala-library:${scalaVersion}"
compile "org.scala-lang:scala-reflect:${scalaVersion}"
// ------------------------------------------------------------
// Misc. libraries
compile 'com.google.guava:guava:21.0'
compile "io.javaslang:javaslang:${javaslangVersion}"
compile "io.javaslang:javaslang-jackson:${javaslangVersion}"
compile "org.typelevel:squants_${scalaMajorVersion}:1.2.0"
compile "org.scalactic:scalactic_${scalaMajorVersion}:3.0.1"
// ------------------------------------------------------------
// Testing
testCompile 'junit:junit:4.12'
testCompile 'org.assertj:assertj-core:3.6.1'
testCompile 'org.mockito:mockito-core:1.10.19'
testCompile "org.scalatest:scalatest_${scalaMajorVersion}:3.0.1"
testRuntime 'org.pegdown:pegdown:1.1.0' // TODO: is this necessary?
}
task wrapper(type: Wrapper) {
gradleVersion = '3.3'
distributionType = 'all' // Wrapper.DistributionType.ALL
}
task scalaTest(dependsOn: ['testClasses'], type: JavaExec) {
main = 'org.scalatest.tools.Runner'
args = ['-R', 'build/classes/test', '-o']
classpath = sourceSets.test.runtimeClasspath
}
test.dependsOn scalaTest