@@ -21,16 +21,16 @@ repositories {
2121}
2222
2323dependencies {
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'
3434
3535}
3636
@@ -56,12 +56,14 @@ task run (type: JavaExec, dependsOn: classes){
5656}
5757
5858task generateGemJarRequiresFile {
59+ configurations. implementation. canBeResolved = true
60+
5961 doLast {
6062 File jars_file = file(' lib/logstash-input-beats_jars.rb' )
6163 jars_file. newWriter(). withWriter { w ->
6264 w << " # AUTOGENERATED BY THE GRADLE SCRIPT. DO NOT EDIT.\n\n "
6365 w << " require \' jar_dependencies\'\n "
64- configurations. runtime . allDependencies. each {
66+ configurations. implementation . allDependencies. each {
6567 w << " require_jar(\' ${ it.group} \' , \' ${ it.name} \' , \' ${ it.version} \' )\n "
6668 }
6769 w << " require_jar(\' ${ project.group} \' , \' ${ project.name} \' , \' ${ project.version} \' )\n "
@@ -72,8 +74,8 @@ task generateGemJarRequiresFile {
7274task vendor {
7375 doLast {
7476 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
7779 String groupPath = dep. group. replaceAll(' \\ .' , ' /' )
7880 File newJarFile = file(" ${ vendorPathPrefix} /${ groupPath} /${ dep.name} /${ dep.version} /${ dep.name} -${ dep.version} .jar" )
7981 newJarFile. mkdirs()
0 commit comments