File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed
Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -390,19 +390,14 @@ tasks.withType(SpotBugsTask).configureEach { task ->
390390 String variantNameCap = task. name. replace(" spotbugs" , " " )
391391 String variantName = variantNameCap. substring(0 , 1 ). toLowerCase() + variantNameCap. substring(1 )
392392
393- dependsOn " compile${ variantNameCap} Sources"
393+ def javaCompile = tasks. named(" compile${ variantNameCap} JavaWithJavac" )
394+ dependsOn javaCompile
394395
395396 excludeFilter = file(" ${ project.rootDir} /spotbugs-filter.xml" )
396- classes = fileTree(layout. buildDirectory. get(). asFile. toString()+ " /intermediates/javac/${ variantName} /compile${ variantNameCap} JavaWithJavac/classes/" )
397397
398398 classes = files(
399- fileTree(layout. buildDirectory. get(). asFile. toString()+ " /intermediates/javac/${ variantName} /compile${ variantNameCap} JavaWithJavac/classes/" ),
400- fileTree(layout. buildDirectory. get(). asFile. toString()+ " /tmp/kotlin-classes/${ variantName} " )
401- )
402-
403- classpath = files(
404- configurations. compileClasspath,
405- configurations. runtimeClasspath
399+ javaCompile. get(). destinationDirectory,
400+ fileTree(" ${ layout.buildDirectory.get().asFile} /tmp/kotlin-classes/${ variantName} " )
406401 )
407402
408403 reports {
You can’t perform that action at this time.
0 commit comments