@@ -18,12 +18,12 @@ repositories {
1818}
1919
2020dependencies {
21- testCompile ' junit:junit:4.12'
22- testCompile ' org.hamcrest:hamcrest-library:1.3'
23- testCompile ' org.apache.logging.log4j:log4j-core:2.11.1'
21+ testImplementation ' junit:junit:4.12'
22+ testImplementation ' org.hamcrest:hamcrest-library:1.3'
23+ testImplementation ' org.apache.logging.log4j:log4j-core:2.11.1'
2424
25- compile ' io.netty:netty-all:4.1.65.Final'
26- compile ' org.apache.logging.log4j:log4j-api:2.11.1'
25+ implementation ' io.netty:netty-all:4.1.65.Final'
26+ implementation ' org.apache.logging.log4j:log4j-api:2.11.1'
2727}
2828
2929test {
@@ -33,13 +33,13 @@ test {
3333 }
3434}
3535
36- task run (type : JavaExec , dependsOn : classes){
36+ task run (type : JavaExec , dependsOn : classes) {
3737 // turn on or off ssl
38- if (project. hasProperty(' providedargs' )){
38+ if (project. hasProperty(' providedargs' )) {
3939 args(providedargs. split(' ,' ))
4040 }
4141 description = " Plugin testing"
42- main = " org.logstash.plugins.input.http.Runner"
42+ mainClass = " org.logstash.plugins.input.http.Runner"
4343 classpath = sourceSets. main. runtimeClasspath
4444}
4545
@@ -49,7 +49,7 @@ task generateGemJarRequiresFile {
4949 jars_file. newWriter(). withWriter { w ->
5050 w << " # AUTOGENERATED BY THE GRADLE SCRIPT. DO NOT EDIT.\n\n "
5151 w << " require \' jar_dependencies\'\n "
52- configurations. runtime . allDependencies. each {
52+ configurations. runtimeClasspath . allDependencies. each {
5353 w << " require_jar(\' ${ it.group} \' , \' ${ it.name} \' , \' ${ it.version} \' )\n "
5454 }
5555 w << " require_jar(\' ${ project.group} \' , \' ${ project.name} \' , \' ${ project.version} \' )\n "
@@ -60,8 +60,8 @@ task generateGemJarRequiresFile {
6060task vendor {
6161 doLast {
6262 String vendorPathPrefix = " vendor/jar-dependencies"
63- configurations. runtime . allDependencies. each { dep ->
64- File f = configurations. runtime . filter { it. absolutePath. contains(" ${ dep.group} /${ dep.name} /${ dep.version} " ) }. singleFile
63+ configurations. runtimeClasspath . allDependencies. each { dep ->
64+ File f = configurations. runtimeClasspath . filter { it. absolutePath. contains(" ${ dep.group} /${ dep.name} /${ dep.version} " ) }. singleFile
6565 String groupPath = dep. group. replaceAll(' \\ .' , ' /' )
6666 File newJarFile = file(" ${ vendorPathPrefix} /${ groupPath} /${ dep.name} /${ dep.version} /${ dep.name} -${ dep.version} .jar" )
6767 newJarFile. mkdirs()
0 commit comments