@@ -12,40 +12,41 @@ run {
12
12
sourceCompatibility = ' 1.8'
13
13
targetCompatibility = ' 1.8'
14
14
15
- ext. avroVersion = ' 1.8.2'
16
- ext. jacksonVersion = ' 2.8.9'
17
- ext. hadoopVersion = ' 2.7.3'
18
- ext. jCommanderVersion = ' 1.72'
15
+ ext {
16
+ avroVersion = ' 1.8.2'
17
+ jacksonVersion = ' 2.9.6'
18
+ hadoopVersion = ' 2.7.6'
19
+ jCommanderVersion = ' 1.72'
20
+ }
19
21
20
22
repositories {
21
23
jcenter()
22
24
}
23
25
24
26
dependencies {
25
- compile group : ' org.apache.hadoop' , name : ' hadoop-common' , version : hadoopVersion
26
- compile group : ' org.apache.avro' , name : ' avro' , version : avroVersion
27
- compile group : ' org.apache.avro' , name : ' avro-mapred' , version : avroVersion
28
- compile group : ' com.fasterxml.jackson.core' , name : ' jackson-databind' , version : jacksonVersion
29
- compile group : ' com.fasterxml.jackson.dataformat' , name : ' jackson-dataformat-csv' , version : jacksonVersion
27
+ implementation group : ' org.apache.avro' , name : ' avro' , version : avroVersion
28
+ implementation group : ' com.fasterxml.jackson.core' , name : ' jackson-databind' , version : jacksonVersion
29
+ implementation group : ' com.fasterxml.jackson.dataformat' , name : ' jackson-dataformat-csv' , version : jacksonVersion
30
+ implementation group : ' com.beust' , name : ' jcommander' , version : jCommanderVersion
30
31
31
- compile group : ' com.beust' , name : ' jcommander' , version : jCommanderVersion
32
+ implementation group : ' org.apache.avro' , name : ' avro-mapred' , version : avroVersion
33
+ implementation group : ' org.apache.hadoop' , name : ' hadoop-common' , version : hadoopVersion
32
34
33
- runtime group : ' org.apache.hadoop' , name : ' hadoop-hdfs' , version : hadoopVersion
35
+ runtimeOnly group : ' org.apache.hadoop' , name : ' hadoop-hdfs' , version : hadoopVersion
34
36
35
- testCompile group : ' junit' , name : ' junit' , version : ' 4.12'
37
+ testImplementation group : ' junit' , name : ' junit' , version : ' 4.12'
36
38
}
37
39
38
40
// create a single Jar with all dependencies
39
41
task fatJar (type : Jar ) {
40
- dependsOn configurations. runtime
41
42
manifest {
42
43
attributes ' Implementation-Title' : ' radar-restructure-hdfs' ,
43
44
' Implementation-Version' : version,
44
45
' Main-Class' : mainClassName
45
46
}
46
- baseName = project . name + ' - all'
47
+ classifier = ' all'
47
48
from {
48
- configurations. runtime . collect {
49
+ configurations. runtimeClasspath . collect {
49
50
it. isDirectory() ? it : zipTree(it)
50
51
}
51
52
} {
@@ -58,7 +59,6 @@ artifacts {
58
59
archives fatJar
59
60
}
60
61
61
- task wrapper (type : Wrapper ) {
62
- gradleVersion = ' 4.1'
63
- distributionType ' all'
62
+ wrapper {
63
+ gradleVersion ' 4.8'
64
64
}
0 commit comments