awslabs / aws-mobile-appsync-sdk-android

Android SDK for AWS AppSync.
https://docs.amplify.aws/sdk/api/graphql/q/platform/android/
Apache License 2.0
105 stars 58 forks source link

Gradle configuration cache support #419

Open kikichang opened 9 months ago

kikichang commented 9 months ago

Is your feature request related to a problem? Please describe. The plugin currently is not gradle configuration cache compatible. It seems to be due to using an older version of com.github.node-gradle:gradle-node-plugin. From its release note, it started supporting configuration cache since 3.0.0, and its later version supports up to gradle 8.4

Describe the solution you'd like aws-android-sdk-appsync-gradle-plugin to be compatible with gradle configuration cache feature.

lolucosmin commented 8 months ago

@tylerjroach same issue here with this setup classpath 'com.android.tools.build:gradle:8.2.0' and distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip:

Task :app:************ of type com.apollographql.apollo.gradle.ApolloIRGenTask: 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.

tylerjroach commented 8 months ago

Thank you for the reports. I have added these as feature requests for further improvements.