1
+
1
2
import okhttp3.OkHttpClient
2
3
import okhttp3.Request
3
4
import org.gradle.api.DefaultTask
@@ -43,7 +44,8 @@ object JapiCmp {
43
44
}
44
45
45
46
this .artifact = artifact
46
- output.set(File (buildDir, " japicmp/cache/$artifact " ))
47
+
48
+ output.set(File (layout.buildDirectory.asFile.get(), " japicmp/cache/$artifact " ))
47
49
}
48
50
49
51
// TODO: Make this lazy
@@ -62,8 +64,8 @@ object JapiCmp {
62
64
packageExcludes = listOf (" *.internal*" )
63
65
onlyModified = true
64
66
failOnSourceIncompatibility = false
65
- htmlOutputFile = file(" $buildDir /reports/japicmp.html" )
66
- txtOutputFile = file(" $buildDir /reports/japicmp.txt" )
67
+ htmlOutputFile = file(" ${layout.buildDirectory.asFile.get()} /reports/japicmp.html" )
68
+ txtOutputFile = file(" ${layout.buildDirectory.asFile.get()} /reports/japicmp.txt" )
67
69
}
68
70
tasks.register(" checkJapicmp" , me.champeau.gradle.japicmp.JapicmpTask ::class .java) {
69
71
dependsOn(downloadBaselineJarTaskProvider)
@@ -73,8 +75,8 @@ object JapiCmp {
73
75
packageExcludes = listOf (" *.internal*" )
74
76
onlyModified = true
75
77
failOnSourceIncompatibility = true
76
- htmlOutputFile = file(" $buildDir /reports/japicmp.html" )
77
- txtOutputFile = file(" $buildDir /reports/japicmp.txt" )
78
+ htmlOutputFile = file(" ${layout.buildDirectory.asFile.get()} /reports/japicmp.html" )
79
+ txtOutputFile = file(" ${layout.buildDirectory.asFile.get()} /reports/japicmp.txt" )
78
80
}
79
81
}
80
82
}
0 commit comments