Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Un-break Gradle configuration cache in multi module cases #4564

Merged
merged 3 commits into from Dec 9, 2022

Conversation

BoD
Copy link
Contributor

@BoD BoD commented Dec 8, 2022

This change broke the configuration cache by using project at execution time which is forbidden. This introduces a field instead.

…ration cache. Instead, add a specific input field.
@netlify
Copy link

netlify bot commented Dec 8, 2022

Deploy Preview for apollo-android-docs canceled.

Name Link
🔨 Latest commit 20ffb2b
🔍 Latest deploy log https://app.netlify.com/sites/apollo-android-docs/deploys/6393111d814d9d0008f1d659

@@ -213,6 +213,9 @@ abstract class ApolloGenerateSourcesTask : DefaultTask() {
@get:Input
abstract val projectName: Property<String>

@get:Input
abstract val projectPath: Property<String>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like projectName isn't used anymore. Can you remove it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was still used to be passed to Options.moduleName but that was unused too so I removed it :)

@@ -377,7 +380,7 @@ abstract class ApolloGenerateSourcesTask : DefaultTask() {
ApolloMetadata(
commonMetadata = if (rememberCommonMetadata) commonMetadata else null,
compilerMetadata = outputCompilerMetadata,
moduleName = project.path,
moduleName = projectPath.get(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Contributor

@martinbonnin martinbonnin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think projectName can be removed. Looks good otherwise 👍

@BoD BoD merged commit e000d06 into main Dec 9, 2022
@BoD BoD deleted the fix-broken-configuration-cache branch December 9, 2022 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants