JB Onofré
06/18/2024, 4:34 PM@CompileClasspath works in a task) between Gradle 8.1 and 8.2 ? I have a plugin with a different behavior between Gradle 8.1 and 8.2.Vampire
06/18/2024, 8:42 PMJB Onofré
06/19/2024, 8:52 AMoldApi is populated via https://github.com/palantir/gradle-revapi/blob/develop/src/main/java/com/palantir/gradle/revapi/RevapiAnalyzeTask.java#L84 (@CompileClasspath)
I'm investigating with remote debugging, but I was wondering if @CompileClasspath has somehow changed between gradle 8.1 and 8.2Vampire
06/19/2024, 10:20 AM@CompileClasspath?
The annotation does not influence the property's value.
Just how it is interpreted and normalized when it comes to up-to-date checks and cache key calculation.Vampire
06/19/2024, 10:21 AMConfigurableFileCollection instead of Property<FileCollection>.Vampire
06/19/2024, 10:24 AMJB Onofré
06/19/2024, 11:53 AMJB Onofré
06/19/2024, 11:53 AM@CompileClasspath confused meJB Onofré
06/19/2024, 11:54 AMConfigurableFileCollection to see if it helpsJB Onofré
06/19/2024, 11:55 AMprivate final Property<FileCollection> oldApiJars =
getProject().getObjects().property(FileCollection.class);JB Onofré
06/19/2024, 11:55 AMProperty<FileCollection>Vampire
06/19/2024, 11:57 AMJB Onofré
06/19/2024, 11:58 AMJB Onofré
06/19/2024, 12:00 PMRevapiAnalyzeTask class abstract and remove oldApiJars field (and corresponding setter) to let gradle inject the property ?Vampire
06/19/2024, 12:04 PMJB Onofré
06/19/2024, 12:05 PMVampire
06/19/2024, 12:05 PMRegularFileProperty, Property<...>, ConfigurableFileCollection, and so onJB Onofré
06/19/2024, 12:05 PMVampire
06/19/2024, 12:05 PMJB Onofré
06/19/2024, 12:06 PMResolveOldApiJB Onofré
06/19/2024, 12:06 PMJB Onofré
06/20/2024, 7:36 AMconfiguration.resolve() . Here's the difference:
• with Gradle 8.1, the configuration is a DefaultConfiguration, using a resolver which is ErrorHandlingConfigurationResolver, with delegate to ShortCircuitEmptyConfigurationResolver
• with Gradle 8.8, the configuration is a DefaultUnlockedConfiguration . using a resolver which is ShortCircuitEmptyConfigurationResolver, with delegate to DefaultConfigurationResolverVampire
06/20/2024, 8:41 AMJB Onofré
06/20/2024, 8:54 AMVampire
06/20/2024, 8:57 AMJB Onofré
06/20/2024, 9:12 AMJB Onofré
06/20/2024, 9:13 AMJB Onofré
06/20/2024, 9:13 AMConfiguration is created here: https://github.com/palantir/gradle-revapi/blob/develop/src/main/java/com/palantir/gradle/revapi/OldApiConfigurations.java#L42JB Onofré
06/20/2024, 9:13 AMproject.getConfigurations().create()JB Onofré
06/20/2024, 9:14 AMJB Onofré
06/20/2024, 9:14 AMconfiguration.resolve() doesn't return the same result (depending of the gradle version)JB Onofré
06/20/2024, 9:15 AMgit bisect between gradle 8.1 and 8.2 to identify the change in causeVampire
06/20/2024, 9:35 AMJB Onofré
06/20/2024, 9:35 AMgit bisectJB Onofré
06/20/2024, 9:36 AMResolutionStrategy by default (in configuration )