graphql-java-generator / graphql-gradle-plugin-project

graphql-gradle-plugin is a Gradle Plugin for GraphQL, based on graphql-java. It accelerates the development for both the client and the server, by generating the Java code. It allows a quicker development when in contract-first approach, by avoiding to code the boilerplate code.
https://graphql-maven-plugin-project.graphql-java-generator.com/
MIT License
54 stars 8 forks source link

Error generating client code #12

Closed VascoTacos closed 1 year ago

VascoTacos commented 1 year ago

As of today, we are getting the following error when trying to generate client code:

* What went wrong:
A problem occurred configuring root project 'data-graph'.
> Could not resolve all files for configuration ':classpath'.
   > Could not download graphql-java-client-runtime-1.18.7.jar (com.graphql-java-generator:graphql-java-client-runtime:1.18.7)
      > Could not get resource 'https://plugins.gradle.org/m2/com/graphql-java-generator/graphql-java-client-runtime/1.18.7/graphql-java-client-runtime-1.18.7.jar'.
         > Could not GET 'https://jcenter.bintray.com/com/graphql-java-generator/graphql-java-client-runtime/1.18.7/graphql-java-client-runtime-1.18.7.jar'.
            > Read timed out
   > Could not download graphql-java-common-runtime-1.18.7.jar (com.graphql-java-generator:graphql-java-common-runtime:1.18.7)
      > Could not get resource 'https://plugins.gradle.org/m2/com/graphql-java-generator/graphql-java-common-runtime/1.18.7/graphql-java-common-runtime-1.18.7.jar'.
         > Could not GET 'https://jcenter.bintray.com/com/graphql-java-generator/graphql-java-common-runtime/1.18.7/graphql-java-common-runtime-1.18.7.jar'.
            > Read timed out
   > Could not download graphql-java-spring-mvc-1.18.7.jar (com.graphql-java-generator:graphql-java-spring-mvc:1.18.7)
      > Could not get resource 'https://plugins.gradle.org/m2/com/graphql-java-generator/graphql-java-spring-mvc/1.18.7/graphql-java-spring-mvc-1.18.7.jar'.
         > Could not GET 'https://jcenter.bintray.com/com/graphql-java-generator/graphql-java-spring-mvc/1.18.7/graphql-java-spring-mvc-1.18.7.jar'.
            > Read timed out
   > Could not download graphql-java-18.0.jar (com.graphql-java:graphql-java:18.0)
      > Could not get resource 'https://plugins.gradle.org/m2/com/graphql-java/graphql-java/18.0/graphql-java-18.0.jar'.
         > Read timed out

Nothing was changed recently from our end.

plugins {
    id 'java-library'
    id "com.graphql_java_generator.graphql-gradle-plugin" version "1.18.7"
}
implementation 'com.graphql-java-generator:graphql-java-client-runtime:1.18.7'
implementation 'com.graphql-java:graphql-java-extended-scalars:19.0'
etienne-sf commented 1 year ago

Hello,

The url used to retrieve the maven plug-in is wrong.

Do you have mavenCentral configured, like this:

´´´ repositories { mavenCentral() } ´´´

Étienne

VascoTacos commented 1 year ago

Hello @etienne-sf

Yes, this is what I have:

repositories {
    mavenCentral()
}
VascoTacos commented 1 year ago

Seems like the problem was resolved somehow and we are longer experiencing this issue.