I used to have this sort of client-side configurat...
# apollo-kotlin
s
I used to have this sort of client-side configuration in 3.x https://github.com/HedvigInsurance/android/blob/a304bc565366b7968b0feb51e4adc98a9d[…]uild-logic/convention/src/main/kotlin/ApolloConventionPlugin.kt which came from this discussion https://kotlinlang.slack.com/archives/C01A6KM1SBZ/p1678194975409139?thread_ts=1678192377.740419&cid=C01A6KM1SBZ But in 4.x I am getting:
Copy code
> Cannot query the value of task ':apollo-octopus-public:downloadOctopusApolloSchemaFromIntrospection' property 'schema' because it has no value available.
I do not see a reference to this in the migration doc, I am suspecting this has something to do with using
introspection { ...; schemaConnection { // something here?
to do this sort of manipulation to the downloaded file perhaps?
1
m
Ah yea, that’s what I get for sharing code snippets referencing internal APIs... 🙈
This internal API hasn’t changed much though 🤔
If you disable the customization, can you still download the schema?
s
Ah yea, that’s what I get for sharing code snippets referencing internal APIs...
Hehe I like living on the edge don't worry 😄 Yeah disabling this customization the download task works perfectly fine
m
Interesting
Looks like
outputFile
is the new
schema
, let me dive into this again
Can you replace
Copy code
val schemaPath = schema.get()
          val schemaFile = rootDirVar.resolve(schemaPath)
with just
Copy code
val schemaFile = outputFile.get().asFile
?
👍 1
s
Nice and simple, that was it 😊
🎉 1
After reading this https://mastodon.mbonnin.net/@mb/112790125567297044 just 10 minutes ago, I am always like amazed at how little I understand Gradle 😂
And then I get a gradle issue which you solve for me, the timing was great 😄
m
Ahah, I like to think as Gradle as a puzzle. Part of the fun is in the process 🙃
🧩 1
Wouldn’t be fun if you could finish everything in bare minutes 😅
😂 1
s
Yes, I am very puzzled indeed when working with it 😂 So thanks again, this is now resolved! 🙏
😂 1
m
Nice!
Still uses an internal API but we just bought another year 😄
s
Haha look, a year is a long time, I am not complaining 😇
😄 1