agrosner
11/21/2022, 9:24 PMgenerateApolloSources
when the plugin is included.agrosner
11/21/2022, 9:25 PMExecution failed for task ':infra-apollo-schema:generateMonolithApolloSources'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:142)
at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:282)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:140)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:128)
at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:77)
at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:51)
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)
at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:56)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
at
Caused by: java.lang.NoSuchMethodError: 'com.apollographql.relocated.xb com.apollographql.apollo3.ast.introspection.Introspection_to_schemaKt.toSchemaGQLDocument(java.io.File)'
agrosner
11/21/2022, 9:25 PMagrosner
11/21/2022, 9:28 PMagrosner
11/21/2022, 9:39 PMmbonnin
11/21/2022, 11:01 PMmbonnin
11/21/2022, 11:03 PMmbonnin
11/21/2022, 11:09 PMcom.apollographql.apollo3.ast.introspection.Introspection_to_schemaKt.toSchemaGQLDocument
. See https://github.com/apollographql/apollo-kotlin/blob/c8227a768e0a6ee4041f81a4a7f1793e1e8a988f/apollo-gradle-plugin/rules.pro#L28mbonnin
11/21/2022, 11:10 PMapollo-gradle-plugin.jar
shadows apollo-ast.jar
and in that case, it relocates the return value GQLDocument
but not the method name itself (toSchemaGQLDocument
)mbonnin
11/21/2022, 11:11 PMapollo-ast.jar
, you end up with duplicate toSchemaGQLDocument
. One that returns a GQLDocument
and one that returns a com.apollographql.relocated.xb
mbonnin
11/21/2022, 11:12 PMcom.apollographql.apollo3.external
(apollo-gradle-plugin-external) plugin that doesn't do any relocationmbonnin
11/21/2022, 11:15 PMagrosner
11/22/2022, 1:56 PMagrosner
11/22/2022, 1:57 PMagrosner
11/22/2022, 1:58 PMmbonnin
11/22/2022, 1:58 PM3.7.x
will have the same issue, we'll work on a fix but there's nothing in 3.7.2
yetagrosner
11/22/2022, 1:59 PMmbonnin
11/22/2022, 1:59 PMexternal
version to work, it will save your builds some RAM because the JVM will not have to load all these classes multiple timesagrosner
11/22/2022, 2:00 PMmbonnin
11/22/2022, 2:00 PMagrosner
11/22/2022, 2:01 PMagrosner
11/22/2022, 2:01 PMagrosner
11/22/2022, 2:02 PMmbonnin
11/22/2022, 2:02 PMmbonnin
11/22/2022, 2:03 PM./gradlew generateApolloStatistics
that shows # of queries, field useds, etc...agrosner
11/22/2022, 2:03 PMagrosner
11/22/2022, 2:03 PMagrosner
11/22/2022, 2:04 PMmbonnin
11/22/2022, 2:04 PMmbonnin
11/22/2022, 2:04 PMmbonnin
11/22/2022, 2:04 PMagrosner
11/22/2022, 2:04 PMagrosner
11/22/2022, 2:05 PMmbonnin
11/22/2022, 2:05 PMagrosner
11/22/2022, 2:05 PMagrosner
11/22/2022, 2:06 PMmbonnin
11/22/2022, 2:08 PM