-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbuild.gradle
60 lines (50 loc) · 1.52 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
/*
* This build file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Java Library project to get you started.
* For more details take a look at the Java Libraries chapter in the Gradle
* user guide available at https://docs.gradle.org/4.2.1/userguide/java_library_plugin.html
*/
version="SPARK-3.5.0"
buildscript {
repositories {
mavenLocal()
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
}
}
apply plugin: 'java-library'
apply plugin: 'java'
apply plugin: 'scala'
apply plugin: 'application'
repositories {
jcenter()
mavenCentral()
maven { url 'https://jitpack.io' }
}
dependencies {
compileOnly project(':fractal-core')
compileOnly project(':fractal-apps')
}
task scalaTest(dependsOn: ['testClasses'], type: JavaExec) {
environment "SPARK_SCALA_VERSION", "2.13"
main = 'org.scalatest.tools.Runner'
args = ['-R', 'build/classes/scala/test', '-o']
classpath = sourceSets.test.runtimeClasspath
}
application {
applicationDefaultJvmArgs = ['-Xmx10g']
mainClassName = project.hasProperty("mainClass") ? getProperty("mainClass") : "NULL"
}
subprojects {
apply plugin: 'java-library'
apply plugin: 'java'
apply plugin: 'scala'
task scalaTest(dependsOn: ['testClasses'], type: JavaExec) {
environment "SPARK_SCALA_VERSION", "2.13"
main = 'org.scalatest.tools.Runner'
args = ['-R', 'build/classes/scala/test', '-o']
classpath = sourceSets.test.runtimeClasspath
}
test.dependsOn scalaTest
}