@@ -12,40 +12,41 @@ run {
1212sourceCompatibility = ' 1.8'
1313targetCompatibility = ' 1.8'
1414
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+ }
1921
2022repositories {
2123 jcenter()
2224}
2325
2426dependencies {
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
3031
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
3234
33- runtime group : ' org.apache.hadoop' , name : ' hadoop-hdfs' , version : hadoopVersion
35+ runtimeOnly group : ' org.apache.hadoop' , name : ' hadoop-hdfs' , version : hadoopVersion
3436
35- testCompile group : ' junit' , name : ' junit' , version : ' 4.12'
37+ testImplementation group : ' junit' , name : ' junit' , version : ' 4.12'
3638}
3739
3840// create a single Jar with all dependencies
3941task fatJar (type : Jar ) {
40- dependsOn configurations. runtime
4142 manifest {
4243 attributes ' Implementation-Title' : ' radar-restructure-hdfs' ,
4344 ' Implementation-Version' : version,
4445 ' Main-Class' : mainClassName
4546 }
46- baseName = project . name + ' - all'
47+ classifier = ' all'
4748 from {
48- configurations. runtime . collect {
49+ configurations. runtimeClasspath . collect {
4950 it. isDirectory() ? it : zipTree(it)
5051 }
5152 } {
@@ -58,7 +59,6 @@ artifacts {
5859 archives fatJar
5960}
6061
61- task wrapper (type : Wrapper ) {
62- gradleVersion = ' 4.1'
63- distributionType ' all'
62+ wrapper {
63+ gradleVersion ' 4.8'
6464}
0 commit comments