Stylianos Gakis
07/15/2024, 1:14 PMpackageName.set("octopus")
. Then all sub-modules that also wanted to have their own queries/mutations would also apply the apollo plugin, and also do packageName.set("octopus")
.
I just realized there was nothing being generated by the generateApolloSources
task. I changed the packageName to something else, and it now did generate the queries properly.
So I am realizing, does 4.x not like the package name being the same for conflict reasons? Or is this just not true and I am experiencing something completely different perhaps?
I did read this https://www.apollographql.com/docs/kotlin/v4/migration/4.0/#all-schema-types-are-generated-in-the-schema-module but I don't think this is related right? Because when I do change the packageName itself those queries do get properly generated only in that feature module.bod
07/15/2024, 1:22 PMStylianos Gakis
07/15/2024, 1:24 PMgenerateApolloSources
• Notice the in that feature module, in build/generated/source/apollo...
the files are generated.
• Then change the packageName back to the same as the one in the schema module
• Sync project
• Run generateApolloSources
• The build/generated/source/apollo...
dir is just empty.
Perhaps I should run generateApolloSources with logs to see if anything stand out?bod
07/15/2024, 1:27 PMbod
07/15/2024, 1:27 PMStylianos Gakis
07/15/2024, 1:29 PMbod
07/15/2024, 1:30 PMStylianos Gakis
07/15/2024, 1:31 PMservice("octopus") {
packageName = "octopuss"
instead did work 😕
Changing them both back to just "octopus" the the feature module does not generate anything again 😅
I must be doing something super weird somewhere, this makes no sense 😄mbonnin
07/15/2024, 1:31 PMmbonnin
07/15/2024, 1:31 PM--no-build-cache
?Stylianos Gakis
07/15/2024, 1:32 PM./gradlew generateApolloSources --no-build-cache
once before. But I will do it again maybe I didn't do it in a proper state before.mbonnin
07/15/2024, 1:32 PM--no-configuration-cache --rerun-tasks
as well “just to be sure”...Stylianos Gakis
07/15/2024, 1:33 PM./gradlew generateApolloSources --no-build-cache --no-configuration-cache --rerun-tasks
and it workedStylianos Gakis
07/15/2024, 1:34 PMmbonnin
07/15/2024, 1:34 PMStylianos Gakis
07/15/2024, 1:34 PMmbonnin
07/15/2024, 1:35 PMmbonnin
07/15/2024, 1:35 PMmbonnin
07/15/2024, 1:36 PMStylianos Gakis
07/15/2024, 1:40 PM--no-build-cache --no-configuration-cache --rerun-tasks
at all problems 😂 I used to do --no-build-cache
but TIL it's not always enough 😄bod
07/15/2024, 1:40 PM