Aman Agarwal
04/16/2024, 5:46 PMgraphql-kotlin-maven-plugin
locally, I build it's jar and installed it into local maven and updated the version in my service but getting below error
Execution default of goal com.expediagroup:graphql-kotlin-maven-plugin:8.0.0-SNAPSHOT:generate-sdl failed: A required class was missing while executing com.expediagroup:graphql-kotlin-maven-plugin:8.0.0-SNAPSHOT:generate-sdl: kotlin/jvm/functions/Function0
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>com.expediagroup:graphql-kotlin-maven-plugin:8.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/8.0.0-SNAPSHOT/graphql-kotlin-maven-plugin-8.0.0-SNAPSHOT.jar
[ERROR] Number of foreign imports: 1
Can someone help, if there is another way to test it?Dariusz Kuc
04/17/2024, 3:48 AMDariusz Kuc
04/17/2024, 3:48 AMmaster
?Aman Agarwal
04/17/2024, 4:44 AMgradle clean build
and import that jar in .m2 folder and updated that snapshot version in my repo but still getting the same issue.Dariusz Kuc
04/17/2024, 4:44 AMDariusz Kuc
04/17/2024, 4:45 AM./gradlew clean build
from root should workAman Agarwal
04/17/2024, 4:47 AM<build>
<finalName>${project.artifactId}</finalName>
<sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory>
<testSourceDirectory>${project.basedir}/src/test/kotlin</testSourceDirectory>
<plugins>
<plugin>
<groupId>com.expediagroup</groupId>
<artifactId>graphql-kotlin-maven-plugin</artifactId>
<version>8.0.0-SNAPSHOT</version>
<executions>
<execution>
<goals>
<goal>generate-sdl</goal>
</goals>
<configuration>
<packages>
<package>com.expediagroup.supply.api.lodging.reviews.schema.external</package>
</packages>
<schemaFile>${project.build.directory}/schema.graphql</schemaFile>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
Aman Agarwal
04/17/2024, 4:47 AMAman Agarwal
04/17/2024, 4:47 AMAman Agarwal
04/17/2024, 4:48 AM./gradlew clean build
Which generated the jar of every module and I imported that jar with below command
mvn install:install-file \
-Dfile=<path-to-file> \
-DgroupId=<group-id> \
-DartifactId=<artifact-id> \
-Dversion=<version> \
-Dpackaging=<packaging> \
-DgeneratePom=true
Aman Agarwal
04/17/2024, 4:49 AMmvn clean install
At that time I am getting this error.Dariusz Kuc
04/17/2024, 4:52 AMDariusz Kuc
04/17/2024, 4:52 AM./gradlew publishToMavenLocal
Dariusz Kuc
04/17/2024, 4:52 AMDariusz Kuc
04/17/2024, 4:53 AMAman Agarwal
04/17/2024, 4:54 AMgradle clean build
I was publishing it using
mvn install:install-file \
-Dfile=<path-to-file> \
-DgroupId=<group-id> \
-DartifactId=<artifact-id> \
-Dversion=<version> \
-Dpackaging=<packaging> \
-DgeneratePom=true
Let me give it a try.Dariusz Kuc
04/17/2024, 4:54 AMDariusz Kuc
04/17/2024, 4:56 AMpublishToMavenLocal
)Aman Agarwal
04/17/2024, 6:53 AMAman Agarwal
04/18/2024, 1:36 AMDariusz Kuc
04/18/2024, 1:41 AMDariusz Kuc
04/18/2024, 1:42 AMAman Agarwal
04/18/2024, 1:48 AMDariusz Kuc
04/18/2024, 1:48 AMAman Agarwal
04/18/2024, 1:49 AMDariusz Kuc
04/18/2024, 1:50 AMAman Agarwal
04/18/2024, 1:51 AMSamuel Vazquez
04/18/2024, 1:52 AMDariusz Kuc
04/18/2024, 1:52 AMDariusz Kuc
04/18/2024, 1:54 AMDariusz Kuc
04/18/2024, 1:55 AM@GraphQLValidLocation([INPUT])
@GraphQLName("Bar")
data class Foo(...)
Dariusz Kuc
04/18/2024, 1:55 AMDariusz Kuc
04/18/2024, 1:56 AMSamuel Vazquez
04/18/2024, 1:56 AMSamuel Vazquez
04/18/2024, 1:56 AMAman Agarwal
04/18/2024, 2:01 AMSamuel Vazquez
04/18/2024, 2:02 AMgit cherry-pick
Aman Agarwal
04/18/2024, 2:04 AMSamuel Vazquez
04/18/2024, 2:04 AMDariusz Kuc
04/18/2024, 2:14 AMAman Agarwal
04/18/2024, 5:44 PMSamuel Vazquez
04/18/2024, 5:44 PM