forked from linkedin/transport
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
54 lines (49 loc) · 1.81 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
apply plugin: 'scala'
apply plugin: 'com.github.alisiikh.scalastyle'
apply plugin: 'java-library'
sourceSets {
main {
scala {
srcDirs = project(':transportable-udfs-spark_2.11').sourceSets.main.scala.srcDirs
}
}
test {
scala {
srcDirs = project(':transportable-udfs-spark_2.11').sourceSets.test.scala.srcDirs
}
}
}
dependencies {
api project(':transportable-udfs-type-system')
implementation project(':transportable-udfs-api')
implementation project(':transportable-udfs-utils')
// For spark-core and spark-sql dependencies, we exclude transitive dependency on 'jackson-module-paranamer',
// since this is required for the LinkedIn version of spark-core and spark-sql.
compileOnly(group: project.ext.'spark-group', name: 'spark-core_2.12', version: project.ext.'spark3-version') {
exclude module: 'jackson-module-paranamer'
}
compileOnly(group: project.ext.'spark-group', name: 'spark-sql_2.12', version: project.ext.'spark3-version') {
exclude module: 'jackson-module-paranamer'
}
compileOnly('com.fasterxml.jackson.module:jackson-module-paranamer:2.6.7')
testImplementation(group: project.ext.'spark-group', name: 'spark-core_2.12', version: project.ext.'spark3-version') {
exclude module: 'jackson-module-paranamer'
}
testImplementation(group: project.ext.'spark-group', name: 'spark-sql_2.12', version: project.ext.'spark3-version') {
exclude module: 'jackson-module-paranamer'
}
testImplementation('com.fasterxml.jackson.module:jackson-module-paranamer:2.6.7')
testImplementation project(path: ':transportable-udfs-type-system', configuration: 'tests')
}
task jarTests(type: Jar, dependsOn: testClasses) {
classifier = 'tests'
from sourceSets.test.output
}
configurations {
tests {
extendsFrom testRuntimeOnly
}
}
artifacts {
tests jarTests
}