Stylianos Gakis
05/05/2023, 12:08 PM./gradlew :apollo:giraffe:downloadGiraffeApolloSchemaFromIntrospection
which is the automatically generated task, I also get the error
Configuration cache problems found in this build.
1 problem was found storing the configuration cache.
- Task `:apollo:giraffe:downloadGiraffeApolloSchemaFromIntrospection` of type `com.apollographql.apollo3.gradle.internal.ApolloDownloadSchemaTask`: cannot serialize object of type 'org.gradle.api.internal.project.DefaultProject', a subtype of 'org.gradle.api.Project', as these are not supported with the configuration cache.
See <https://docs.gradle.org/8.0.2/userguide/configuration_cache.html#config_cache:requirements:disallowed_types>
mbonnin
05/05/2023, 12:10 PMStylianos Gakis
05/05/2023, 12:13 PMmbonnin
05/05/2023, 12:13 PMtasks.named("downloadGiraffeApolloSchemaFromIntrospection") {
notCompatibleWithConfigurationCache("<https://issue.link.here>")
}
?Stylianos Gakis
05/05/2023, 12:17 PMtasks.register("downloadApolloSchemasFromIntrospection") {
notCompatibleWithConfigurationCache("<https://github.com/apollographql/apollo-kotlin/issues/4925>")
tasks.findByName("downloadGiraffeApolloSchemaFromIntrospection")?.let { downloadTask ->
downloadTask.notCompatibleWithConfigurationCache("<https://github.com/apollographql/apollo-kotlin/issues/4925>")
dependsOn(downloadTask)
}
tasks.findByName("downloadOctopusApolloSchemaFromIntrospection")?.let { downloadTask ->
downloadTask.notCompatibleWithConfigurationCache("<https://github.com/apollographql/apollo-kotlin/issues/4925>")
dependsOn(downloadTask)
}
}
And it now runs without passing in the flag. Thanks a lot!mbonnin
05/05/2023, 12:22 PMStylianos Gakis
05/05/2023, 12:24 PMtasks.withType<com.apollographql.apollo3.gradle.internal.ApolloDownloadSchemaTask>().configureEach {
notCompatibleWithConfigurationCache("<https://github.com/apollographql/apollo-kotlin/issues/4925>")
}
Added that option in the issue too, in case someone else has the same issue hopefully it can help 😊