graphql-spring-boot icon indicating copy to clipboard operation
graphql-spring-boot copied to clipboard

Maven dependencies do not work as noted in Read Me

Open AustinAmoruso opened this issue 8 years ago • 4 comments

I had to use this workaround.

<dependencies>
   <dependency>
      <groupId>com.embedler.moon.graphql.boot.starter</groupId>
      <artifactId>graphql-spring-boot-starter</artifactId>
      <version>2.1.0-2016-04-03T22-19-36</version>
      <exclusions>
         <exclusion>
            <artifactId>graphql-spring-boot-autoconfigure</artifactId>
            <groupId>com.embedler.moon.graphql.boot.autoconfigure</groupId>
         </exclusion>
      </exclusions>
   </dependency>
   <dependency>
      <artifactId>graphql-spring-boot-autoconfigure</artifactId>
      <exclusions>
         <exclusion>
            <artifactId>spring-graphql-common</artifactId>
            <groupId>com.embedler.moon.graphql</groupId>
         </exclusion>
      </exclusions>
      <groupId>com.embedler.moon.graphql.boot.autoconfigure</groupId>
      <version>2.1.0-2016-04-03T22-19-36</version>
   </dependency>
   <dependency>
      <artifactId>spring-graphql-common</artifactId>
      <groupId>com.embedler.moon.graphql</groupId>
      <version>2.1.0-2016-04-24T17-11-32</version>
   </dependency>
   <dependency>
      <groupId>com.embedler.moon.graphql.boot.starter</groupId>
      <artifactId>graphiql-spring-boot-starter</artifactId>
      <version>2.1.0-2016-04-03T22-19-36</version>
   </dependency>
</dependencies>

AustinAmoruso avatar Apr 28 '16 17:04 AustinAmoruso

Thank you @AustinAmoruso, i used your pom dependencies and it works. But since this project is not maintained for a long time and has no enough documentation. I guess i have to move back to graphql-java project instead... :(

shishuwu avatar Dec 27 '16 09:12 shishuwu

The correct dependencies are as follows:

<!-- GraphQL -->
<dependency>
    <groupId>com.embedler.moon.graphql.boot.starter</groupId>
    <artifactId>graphql-spring-boot-starter</artifactId>
        <version>2.0</version>
</dependency>
<!-- GraphiQL -->
<dependency>
    <groupId>com.embedler.moon.graphql.boot.starter</groupId>
    <artifactId>graphiql-spring-boot-starter</artifactId>
    <version>2.0.0</version>
</dependency>

In the readme the groupid is missing starter at the end.

faisalferoz avatar Feb 26 '17 15:02 faisalferoz

I found the problem is the dependency spring-graphql-common 2+ is not found in the remote library,can the team fix it ?

0xcryptowang avatar Mar 25 '17 04:03 0xcryptowang

I fix it like this,but is so ugly

        <dependency>
            <groupId>com.embedler.moon.graphql.boot.starter</groupId>
            <artifactId>graphql-spring-boot-starter</artifactId>
            <version>2.1.0-2016-04-29T09-27-45</version>
            <exclusions>
                <exclusion>
                    <artifactId>com.embedler.moon.graphql.boot.autoconfigure</artifactId>
                    <groupId>graphql-spring-boot-autoconfigure</groupId>
                </exclusion>
            </exclusions>
        </dependency>

        <dependency>
            <groupId>com.embedler.moon.graphql.boot.autoconfigure</groupId>
            <artifactId>graphql-spring-boot-autoconfigure</artifactId>
            <version>2.1.0-2016-04-29T09-27-45</version>
            <exclusions>
                <exclusion>
                    <artifactId>com.embedler.moon.graphql</artifactId>
                    <groupId>spring-graphql-common</groupId>
                </exclusion>
            </exclusions>
        </dependency>

        <dependency>
            <groupId>com.embedler.moon.graphql</groupId>
            <artifactId>spring-graphql-common</artifactId>
            <version>2.1.0-2016-05-22T16-50-32</version>
        </dependency>

        <!-- GraphiQL -->
        <dependency>
            <groupId>com.embedler.moon.graphql.boot.starter</groupId>
            <artifactId>graphiql-spring-boot-starter</artifactId>
            <version>2.1.0-2016-04-29T09-27-45</version>
        </dependency>

0xcryptowang avatar Mar 25 '17 04:03 0xcryptowang