-
Notifications
You must be signed in to change notification settings - Fork 24
/
build.gradle
75 lines (59 loc) · 1.36 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
apply plugin: "scala"
apply plugin: "idea"
apply plugin: "eclipse"
apply plugin: "maven"
version = "0.10"
group = "org.expecty"
repositories {
mavenCentral()
}
configurations {
provided
}
dependencies {
provided "org.scala-lang:scala-reflect:2.10.0"
compile "org.scala-lang:scala-library:2.10.0"
testCompile "junit:junit:4.11"
testRuntime "org.scala-lang:scala-library:2.10.3"
}
sourceSets.main.compileClasspath += configurations.provided
tasks.withType(ScalaCompile) {
scalaCompileOptions.useAnt = false
}
compileScala {
scalaCompileOptions.with {
//additionalParameters += ["-Ymacro-debug", "-Ymacro-copypaste"]
}
}
compileTestScala {
scalaCompileOptions.with {
//loggingLevel = "debug"
//loggingPhases = ["namer", "typer", "pickler", "explicitouter", "lambdalift"]
additionalParameters = ["-Yrangepos"]
//additionalParameters += ["-Ylog:icode", "-Ydebug"]
//additionalParameters += ["-verbose"]
}
}
uploadArchives {
repositories.mavenDeployer {
repository url: "file:///${projectDir}/m2repo"
}
}
test {
//testLogging.showStandardStreams = true
}
task sourcesJar(type: Jar) {
from sourceSets.main.scala
classifier = "sources"
}
artifacts {
archives sourcesJar
}
idea {
module {
scopes.PROVIDED.plus += configurations.provided
}
}
task wrapper(type: Wrapper) {
gradleVersion = "1.8"
}