-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
79 lines (61 loc) · 2.25 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
task wrapper(type: Wrapper) {
gradleVersion = '1.10'
distributionUrl = "https://github.com/10QueensRoad/gradle/releases/download/REL_${gradleVersion}-java8/gradle-${gradleVersion}-bin.zip"
}
apply plugin: 'maven'
group = 'org.fossbrain.green'
version = '0.1.0-SNAPSHOT'
apply plugin: 'scala'
// Separate the itests from the regular integration tests
sourceSets {
itest {
scala.srcDir file('src/itest/scala')
resources.srcDir file('src/itest/resources')
}
}
task itest(type: Test, dependsOn: 'distZip') {
testClassesDir = sourceSets.itest.output.classesDir
classpath = sourceSets.itest.runtimeClasspath
}
check.dependsOn itest
repositories {
mavenCentral()
}
dependencies {
// this is an old version required since the new version
// does not play together nicley with sbt/zinc I assume.
// maybe we should try to upgrade this from time to time if
// new version support to take the latest version again
// maybe we should try to upgrade this from time to time if
compile 'org.scala-lang:scala-library:2.10.4'
compile 'org.scala-lang:scala-compiler:2.10.4'
// this one is part of the incremental compiler and needs
// to be removed by time with a working ant again
compile 'com.typesafe.zinc:zinc:0.3.5'
// testing libraries
testCompile 'junit:junit:4.11'
testCompile 'org.scalatest:scalatest_2.10:2.1.7'
// testRuntime 'org.scala-lang.modules:scala-xml_2.11:1.0.1'
itestCompile sourceSets.main.output
itestCompile configurations.testCompile
itestCompile sourceSets.test.output
itestRuntime configurations.testRuntime
}
// uses the zinc version of the scala compiler instead of the ant one
// since ant isn't compatible to java 8; is is incremental, but for CI
// builds (since it is slower for non-incremental build) it's not
// recommended by now. This needs to be reevaluated from time to time
tasks.withType(ScalaCompile) {
scalaCompileOptions.useAnt = false
}
apply plugin: 'application'
mainClassName = "Main"
applicationDistribution.from('.') {
include('README.md')
rename('README.md', 'README')
include('NOTICE.md')
rename('NOTICE.md', 'NOTICE')
include('CHANGELOG.md')
rename('CHANGELOG.md', 'CHANGELOG')
include('LICENSE')
}