Aman Agarwal
04/14/2024, 3:07 AM@GraphQLInputName
which is expected to override the default behaviour of appending Input
as suffix in the input classes.
Here is the changes which I have made
https://github.com/ExpediaGroup/graphql-kotlin/pull/1949/files
I am trying to test these changes in one of my service where I have generated the jar graphql-kotlin-schema-generator
and updated it's generated version into my pom, I have written the test cases those are working as expected but when I am applying this annotation in service my schema.graphql
is not showing the changes as expected. Could you please help to know what I am missing?Aman Agarwal
04/15/2024, 4:24 PMShane Myrick
04/15/2024, 4:53 PMAman Agarwal
04/15/2024, 5:04 PMExecution default of goal com.expediagroup:graphql-kotlin-maven-plugin:7.0.0-SNAPSHOT:generate-sdl failed: A required class was missing while executing com.expediagroup:graphql-kotlin-maven-plugin:7.0.0-SNAPSHOT:generate-sdl: kotlin/jvm/functions/Function0
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>com.expediagroup:graphql-kotlin-maven-plugin:7.0.0-SNAPSHOT
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/Users/amaagarwal/.m2/repository/com/expediagroup/graphql-kotlin-maven-plugin/7.0.0-SNAPSHOT/graphql-kotlin-maven-plugin-7.0.0-SNAPSHOT.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[project>com.expediagroup:supply-api-lodging-reviews-graphql:1.0.0-SNAPSHOT, parent: ClassRealm[maven.api, parent: null]]]
[ERROR]
[ERROR] -----------------------------------------------------
java.lang.NoClassDefFoundError: kotlin/jvm/functions/Function0
at java.lang.Class.getDeclaredMethods0 (Native Method)
at java.lang.Class.privateGetDeclaredMethods (Class.java:3402)
at java.lang.Class.getDeclaredMethods (Class.java:2504)
at com.google.inject.internal.DeclaredMembers.getDeclaredMethods (DeclaredMembers.java:48)
at com.google.inject.spi.InjectionPoint.getDeclaredMethods (InjectionPoint.java:811)
at com.google.inject.spi.InjectionPoint.getInjectionPoints (InjectionPoint.java:730)
at com.google.inject.spi.InjectionPoint.forInstanceMethodsAndFields (InjectionPoint.java:430)
at com.google.inject.internal.ConstructorBindingImpl.getInternalDependencies (ConstructorBindingImpl.java:177)
at com.google.inject.internal.InjectorImpl.getInternalDependencies (InjectorImpl.java:670)
at com.google.inject.internal.InjectorImpl.cleanup (InjectorImpl.java:627)
at com.google.inject.internal.InjectorImpl.initializeJitBinding (InjectorImpl.java:613)
at com.google.inject.internal.InjectorImpl.createJustInTimeBinding (InjectorImpl.java:943)
at com.google.inject.internal.InjectorImpl.createJustInTimeBindingRecursive (InjectorImpl.java:863)
at com.google.inject.internal.InjectorImpl.getJustInTimeBinding (InjectorImpl.java:300)
at com.google.inject.internal.InjectorImpl.getBindingOrThrow (InjectorImpl.java:223)
at com.google.inject.internal.InjectorImpl.getProviderOrThrow (InjectorImpl.java:1093)
at com.google.inject.internal.InjectorImpl.getProvider (InjectorImpl.java:1122)
at com.google.inject.internal.InjectorImpl.getProvider (InjectorImpl.java:1087)
I couldn't find info in readme to test the changes locally.Aman Agarwal
04/15/2024, 5:46 PM