@@ -21,16 +21,16 @@ repositories {
21
21
}
22
22
23
23
dependencies {
24
- testCompile ' junit:junit:4.12'
25
- testCompile ' org.hamcrest:hamcrest-library:1.3'
26
- testCompile ' org.apache.logging.log4j:log4j-core:2.11.1'
27
- compile ' io.netty:netty-all:4.1.65.Final'
28
- compile ' org.javassist:javassist:3.24.0-GA'
29
- compile " com.fasterxml.jackson.core:jackson-core:${ jacksonVersion} "
30
- compile " com.fasterxml.jackson.core:jackson-annotations:${ jacksonVersion} "
31
- compile " com.fasterxml.jackson.core:jackson-databind:${ jacksonDatabindVersion} "
32
- compile " com.fasterxml.jackson.module:jackson-module-afterburner:${ jacksonVersion} "
33
- compile ' org.apache.logging.log4j:log4j-api:2.11.1'
24
+ testImplementation ' junit:junit:4.12'
25
+ testImplementation ' org.hamcrest:hamcrest-library:1.3'
26
+ testImplementation ' org.apache.logging.log4j:log4j-core:2.11.1'
27
+ implementation ' io.netty:netty-all:4.1.65.Final'
28
+ implementation ' org.javassist:javassist:3.24.0-GA'
29
+ implementation " com.fasterxml.jackson.core:jackson-core:${ jacksonVersion} "
30
+ implementation " com.fasterxml.jackson.core:jackson-annotations:${ jacksonVersion} "
31
+ implementation " com.fasterxml.jackson.core:jackson-databind:${ jacksonDatabindVersion} "
32
+ implementation " com.fasterxml.jackson.module:jackson-module-afterburner:${ jacksonVersion} "
33
+ implementation ' org.apache.logging.log4j:log4j-api:2.11.1'
34
34
35
35
}
36
36
@@ -56,12 +56,14 @@ task run (type: JavaExec, dependsOn: classes){
56
56
}
57
57
58
58
task generateGemJarRequiresFile {
59
+ configurations. implementation. canBeResolved = true
60
+
59
61
doLast {
60
62
File jars_file = file(' lib/logstash-input-beats_jars.rb' )
61
63
jars_file. newWriter(). withWriter { w ->
62
64
w << " # AUTOGENERATED BY THE GRADLE SCRIPT. DO NOT EDIT.\n\n "
63
65
w << " require \' jar_dependencies\'\n "
64
- configurations. runtime . allDependencies. each {
66
+ configurations. implementation . allDependencies. each {
65
67
w << " require_jar(\' ${ it.group} \' , \' ${ it.name} \' , \' ${ it.version} \' )\n "
66
68
}
67
69
w << " require_jar(\' ${ project.group} \' , \' ${ project.name} \' , \' ${ project.version} \' )\n "
@@ -72,8 +74,8 @@ task generateGemJarRequiresFile {
72
74
task vendor {
73
75
doLast {
74
76
String vendorPathPrefix = " vendor/jar-dependencies"
75
- configurations. runtime . allDependencies. each { dep ->
76
- File f = configurations. runtime . filter { it. absolutePath. contains(" ${ dep.group} /${ dep.name} /${ dep.version} " ) }. singleFile
77
+ configurations. implementation . allDependencies. each { dep ->
78
+ File f = configurations. implementation . filter { it. absolutePath. contains(" ${ dep.group} /${ dep.name} /${ dep.version} " ) }. singleFile
77
79
String groupPath = dep. group. replaceAll(' \\ .' , ' /' )
78
80
File newJarFile = file(" ${ vendorPathPrefix} /${ groupPath} /${ dep.name} /${ dep.version} /${ dep.name} -${ dep.version} .jar" )
79
81
newJarFile. mkdirs()
0 commit comments