Hi Team, I am trying to introduce new annotation `...
# graphql-kotlin
a
Hi Team, I am trying to introduce new annotation
@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?
Hi Team, Any help on the above question or PR?
s
Docs will also need to be updated
a
Sure will do it. Is there a good way to test this plugin on local? After building it and updating version I am facing below issue
Copy code
Execution 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] -----------------------------------------------------
Copy code
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.
Done, I have updated the docs.