Skip to content

Commit 846ed31

Browse files
scala support in examples
1 parent 9fc64f6 commit 846ed31

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

rxjava-examples/build.gradle

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
apply plugin: 'java'
22
apply plugin: 'groovy'
33
apply plugin: 'clojure'
4+
apply plugin: 'scala'
45
apply plugin: 'eclipse'
56
apply plugin: 'idea'
67

@@ -12,13 +13,34 @@ repositories {
1213
clojarsRepo()
1314
}
1415

16+
tasks.withType(ScalaCompile) {
17+
scalaCompileOptions.fork = true
18+
scalaCompileOptions.unchecked = true
19+
20+
configure(scalaCompileOptions.forkOptions) {
21+
memoryMaximumSize = '1g'
22+
jvmArgs = ['-XX:MaxPermSize=512m']
23+
}
24+
}
25+
1526
dependencies {
1627
compile project(':language-adaptors:rxjava-clojure')
1728
compile project(':language-adaptors:rxjava-groovy')
18-
compile 'clj-http:clj-http:0.6.4' // https://clojars.org/clj-http
29+
compile project(':language-adaptors:rxjava-scala')
30+
compile project(':language-adaptors:rxjava-jruby')
31+
1932
provided 'junit:junit:4.10'
2033
provided 'org.mockito:mockito-core:1.8.5'
34+
35+
// clojure
36+
compile 'clj-http:clj-http:0.6.4' // https://clojars.org/clj-http
37+
38+
// groovy
2139
groovy 'org.codehaus.groovy:groovy-all:1.8+'
40+
41+
// scala
42+
scalaTools 'org.scala-lang:scala-compiler:2.10+'
43+
provided 'org.scalatest:scalatest_2.10:1.9.1'
2244
}
2345

2446
/*

0 commit comments

Comments
 (0)