-
Notifications
You must be signed in to change notification settings - Fork 662
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
Conversation
…ration cache. Instead, add a specific input field.
✅ Deploy Preview for apollo-android-docs canceled.
|
@@ -213,6 +213,9 @@ abstract class ApolloGenerateSourcesTask : DefaultTask() { | |||
@get:Input | |||
abstract val projectName: Property<String> | |||
|
|||
@get:Input | |||
abstract val projectPath: Property<String> |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this 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 👍
This change broke the configuration cache by using
project
at execution time which is forbidden. This introduces a field instead.