forked from cs-au-dk/TIP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
84 lines (63 loc) · 1.41 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'maven'
apply plugin: 'scala'
buildscript {
repositories {
mavenCentral()
}
dependencies {
}
}
repositories {
mavenCentral()
mavenLocal()
flatDir {
dirs 'lib'
}
}
sourceSets {
main {
scala {
srcDirs = ['src']
}
}
test {
scala {
srcDirs = ['test']
}
}
}
dependencies {
compile 'org.scala-lang:scala-library:2.11.+'
compile 'org.parboiled:parboiled_2.11:2.+'
compile 'junit:junit:4.12'
}
/* To speed-up compilation using a daemon */
compileScala {
scalaCompileOptions.useCompileDaemon = true
// optionally specify host and port of the daemon:
scalaCompileOptions.daemonServer = "localhost:4243"
scalaCompileOptions.additionalParameters = ['-unchecked', '-deprecation', '-feature']
}
/* To have incremental compilation */
tasks.withType(ScalaCompile) {
scalaCompileOptions.useAnt = false
}
/* To generate the gradle wrapper */
task wrapper(type: Wrapper) {
gradleVersion = '2.3'
}
apply plugin:'application'
installDist {
outputs.dir "./bin"
}
mainClassName = "tip.entry"
/* Running scalacheck test with gradle */
/*
task scalacheck(dependsOn: testClasses, type: JavaExec) {
main = 'org.scalatest.tools.Runner'
args = ['-R', 'build/classes/test', '-o']
classpath = sourceSets.test.runtimeClasspath
}
*/