You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Motivation: wanted to see what was called lintClassPath in old AGPs. In AGP 8 it's a detached configuration, hidden away:
afterEvaluate {
tasks.register("detached", DetachedConfigurationReportTask) {
detachedConfigurations.add(
tasks.named("lintAnalyzeDebug")
.map { com.android.build.gradle.internal.lint.AndroidLintAnalysisTasktask->// Hack com.android.build.gradle.internal.lint.LintFromMaven's detached config.println(task.lintTool.classpath.class)
println(task.lintTool.classpath.sourceCollections)
def c = task.lintTool.classpath.sourceCollections.first()
println(c)
c
}
// If this is not done eagerly while configuring,// and the lintTool.classpath gets resolved,// The sourceCollections will return Files instead of the originating Configuration.// See DefaultConfigurableFileCollection#calculateFinalizedValue for why this happens (value = ...).
.get()
)
}
The text was updated successfully, but these errors were encountered:
ExistingConfigurationContainer
Motivation: wanted to see what was called
lintClassPath
in old AGPs. In AGP 8 it's a detached configuration, hidden away:The text was updated successfully, but these errors were encountered: