File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
src/main/groovy/org/gradle/android/workarounds Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -44,13 +44,18 @@ class JdkImageWorkaround implements Workaround {
44
44
45
45
@Override
46
46
void apply (Project project ) {
47
+ // We would prefer not to configure this if a jdkImage is not in use, but the attributes
48
+ // being ignored are unlikely to ever have a runtime impact. Doing this outside of task
49
+ // configuration prevents issues with things that use the tooling api to finalize the
50
+ // runtime configuration before querying (and instantiating) task configurations.
51
+ applyRuntimeClasspathNormalization(project)
52
+
47
53
applyToAllAndroidVariants(project) { variant ->
48
54
variant. javaCompileProvider. configure { JavaCompile task ->
49
55
def jdkImageInput = getJdkImageInput(task)
50
56
if (jdkImageInput != null ) {
51
57
setupExtractedJdkImageInputTransform(project, getJvmHome(task))
52
58
replaceCommandLineProvider(task, jdkImageInput)
53
- applyRuntimeClasspathNormalization(task. project)
54
59
}
55
60
}
56
61
}
You can’t perform that action at this time.
0 commit comments