@@ -7,18 +7,18 @@ repositories {
77
88task copyLibs (type : Copy ) {
99 into " ${ buildDir} /libs"
10- from configurations. runtime
10+ from configurations. runtimeClasspath
1111 exclude " sonar-*-plugin*.jar"
1212}
1313
1414task copyTestLibs (type : Copy ) {
1515 into " ${ buildDir} /test"
16- from configurations. testCompile
16+ from configurations. testRuntimeClasspath
1717}
1818
1919task copyPlugins (type : Copy ) {
2020 into " ${ buildDir} /plugins"
21- from configurations. runtime
21+ from configurations. runtimeClasspath
2222 include " sonar-*-plugin*.jar"
2323}
2424
@@ -27,20 +27,28 @@ task copyRunnable(type: Copy) {
2727 from " bin/codeclimate-sonar"
2828}
2929
30+ tasks. named(" jar" ) {
31+ dependsOn copyRunnable
32+ }
33+
34+ tasks. named(" compileTestJava" ) {
35+ dependsOn copyRunnable
36+ }
37+
3038task infra (dependsOn : [" copyPlugins" , " copyLibs" , " copyTestLibs" , " copyRunnable" , " jar" ])
3139
3240build. dependsOn(infra)
3341test. dependsOn(infra)
3442
3543dependencies {
36- compile (" com.github.codeclimate:codeclimate-ss-analyzer-wrapper:master -SNAPSHOT" )
44+ implementation (" com.github.codeclimate:codeclimate-ss-analyzer-wrapper:beta -SNAPSHOT" )
3745
3846 // Plugins
39- compile (" org.sonarsource.java:sonar-java-plugin:4.14.0.11784 " )
47+ implementation (" org.sonarsource.java:sonar-java-plugin:6.15.1.26025 " )
4048
41- testCompile (" org.assertj:assertj-core:2.8.0" )
42- testCompile (" org.skyscreamer:jsonassert:1.5.0" )
43- testCompile (" junit:junit:4.12" )
49+ testImplementation (" org.assertj:assertj-core:2.8.0" )
50+ testImplementation (" org.skyscreamer:jsonassert:1.5.0" )
51+ testImplementation (" junit:junit:4.12" )
4452}
4553
4654test {
0 commit comments