-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
86 lines (71 loc) · 2.95 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
85
86
apply plugin: 'scala'
apply plugin: 'idea'
apply plugin: 'eclipse'
repositories {
mavenCentral()
/* ivy {
name = 'ivyRepo'
artifactPattern "file:///Users/dglauser/.ivy2/local/[organisation]/[module]/[revision]/ivys/[artifact].[ext]"
} */
flatDir name: 'localAkkaActor', dirs: '/Users/dglauser/Projects/scala/akka/akka-actor/target'
flatDir name: 'localAkkaRemote', dirs: '/Users/dglauser/Projects/scala/akka/akka-remote/target'
flatDir name: 'localAkka', dirs: '/Users/dglauser/Projects/scala/akka/target'
mavenRepo urls: [ "http://akka.io/repository/", "http://download.java.net/maven/2/",
"http://repository.jboss.org/nexus/content/groups/public-jboss/",
"http://nexus.scala-tools.org/content/repositories/public/",
"http://guiceyfruit.googlecode.com/svn/repo/releases/" ]
}
dependencies {
//def scalaVersion = '2.9.0.RC1'
def scalaVersion = '2.9.0-1'
//def akkaVersion = '1.1-M1'
def akkaVersion = '1.1.2'
// Libraries needed to run the scala tools
scalaTools 'org.scala-lang:scala-compiler:' + scalaVersion
scalaTools 'org.scala-lang:scala-library:' + scalaVersion
// Akka
compile 'se.scalablesolutions.akka:akka-actor:' + akkaVersion
compile 'se.scalablesolutions.akka:akka-remote:' + akkaVersion
compile 'se.scalablesolutions.akka:akka-camel:' + akkaVersion
testCompile 'se.scalablesolutions.akka:akka:' + akkaVersion
testCompile 'se.scalablesolutions.akka:akka-remote:' + akkaVersion
testCompile 'se.scalablesolutions.akka:akka-camel:' + akkaVersion
// Libraries needed for scala api
compile 'org.scala-lang:scala-library:' + scalaVersion
testCompile 'org.scala-lang:scala-library:' +scalaVersion
//logging.captureStandardOutput LogLevel.DEBUG
testCompile 'org.scalatest:scalatest_2.9.0:1.6-SNAPSHOT'
}
clean.doLast {
}
task test(overwrite: true, dependsOn: testClasses) << {
println("Make sure to have something like this in your environment:")
println('export GRADLE_OPTS="-Dorg.gradle.daemon=true -Dakka.config=/Users/dglauser/Projects/scala/remote-actor-prototype/src/main/resources/proto-akka.conf"')
println("")
ant.taskdef(name: 'scalatest',
classname: 'org.scalatest.tools.ScalaTestAntTask',
classpath: sourceSets.test.runtimeClasspath.asPath
)
ant.scalatest(
runpath: sourceSets.test.classesDir,
haltonfailure: 'true',
fork: 'false') {
//jvmarg(value: "-Dakka.config=./src/main/resources/proto-akka.conf")
reporter(type: 'stdout')
}
}
task deleteDeps(type:Delete) {
println('deleting deps')
delete 'deps', '*.jar'
}
task deps(type:Copy) {
println('Writing depenencies to the deps dir')
into 'deps'
from configurations.runtime
}
// Currently broken for Scala, works for Java
task run(type:JavaExec) {
classpath = configurations.runtime
println("My classpath is: ${classpath}")
main='actorproto.Client'
}