-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
53 lines (44 loc) · 1.54 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
/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Scala library project to get you started.
* For more details take a look at the Scala plugin chapter in the Gradle
* User Manual available at https://docs.gradle.org/5.4/userguide/scala_plugin.html
*/
plugins {
// Apply the scala plugin to add support for Scala
id 'scala'
id 'idea'
id 'application'
}
repositories {
// Use jcenter for resolving your dependencies.
// You can declare any Maven/Ivy/file repository here.
mavenCentral()
}
def scalaVersion = "2.11"
def sparkVersion = "2.4.0"
application {
mainClassName = "hadoop.small.files.merger.HDFSFileMerger"
}
jar {
manifest {
attributes "Main-Class":"hadoop.small.files.merger.HDFSFileMerger"
}
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}
dependencies {
// Use Scala 2.11 in our library project
implementation 'org.scala-lang:scala-library:2.11.8'
compileOnly "org.apache.spark:spark-core_$scalaVersion:$sparkVersion"
compileOnly "org.apache.spark:spark-sql_$scalaVersion:$sparkVersion"
compile "org.apache.spark:spark-avro_$scalaVersion:$sparkVersion"
compile "com.github.scopt:scopt_$scalaVersion:3.7.1"
// Use Scalatest for testing our library
testImplementation "junit:junit:4.12"
testImplementation "org.scalatest:scalatest_$scalaVersion:3.0.5"
// Need scala-xml at test runtime
testRuntimeOnly "org.scala-lang.modules:scala-xml_$scalaVersion:1.1.1"
}