-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
48 lines (36 loc) · 1021 Bytes
/
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
plugins {
id "scala"
id "maven"
}
group = 'apsu'
version = '1.0-SNAPSHOT'
ext {
scalaMajorVersion = '2.12'
scalaMinorVersion = '1'
scalaVersion = "${scalaMajorVersion}.${scalaMinorVersion}"
}
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
// ------------------------------------------------------------
// Platform
compile "org.scala-lang:scala-library:${scalaVersion}"
compile "org.scala-lang:scala-reflect:${scalaVersion}"
// ------------------------------------------------------------
// Testing
testCompile "org.scalatest:scalatest_${scalaMajorVersion}:3.0.1"
testCompile 'junit:junit:4.11'
testCompile 'org.mockito:mockito-core:1.9.5'
testRuntime 'org.pegdown:pegdown:1.1.0'
}
task wrapper(type: Wrapper) {
gradleVersion = '3.3'
}
task scalaTest(dependsOn: ['testClasses'], type: JavaExec) {
main = 'org.scalatest.tools.Runner'
args = ['-R', 'build/classes/test', '-o']
classpath = sourceSets.test.runtimeClasspath
}
test.dependsOn scalaTest