Skip to content

Commit

Permalink
update DGS to federation-jvm 2.0.0 (#96)
Browse files Browse the repository at this point in the history
* update DGS to federation-jvm 2.0.0

* update dgs version
DGS v4.10.4 pulls in `federation-graphql-java-support` v2.0.0 transitively.

* add explicit federation dependency
DGS has runtime dependency on `federation-graphql-java-support`, we need explicit compile dependency.

Co-authored-by: Dariusz Kuc <dkuc@apollographql.com>
  • Loading branch information
dariuszkuc and dariuszkuc authored May 24, 2022
1 parent f393d98 commit 2487fa3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
17 changes: 7 additions & 10 deletions implementations/dgs/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

<properties>
<java.version>11</java.version>
<dgs.version>4.9.20</dgs.version>
<dgs.version>4.10.4</dgs.version>
<maven-jar-plugin.version>3.2.2</maven-jar-plugin.version>
</properties>

Expand All @@ -35,24 +35,21 @@

<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<groupId>com.apollographql.federation</groupId>
<artifactId>federation-graphql-java-support</artifactId>
</dependency>

<dependency>
<groupId>com.netflix.graphql.dgs</groupId>
<artifactId>graphql-dgs-spring-boot-starter</artifactId>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>com.apollographql.federation</groupId>
<artifactId>federation-graphql-java-support</artifactId>
<version>2.0.0-alpha.5</version>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
extend schema
@link(url: "https://specs.apollo.dev/federation/v2.0",
import: ["@key", "@shareable", "@provides", "@external", "@tag", "@extends", "@override"])
import: ["@key", "@shareable", "@provides", "@external", "@tag", "@extends", "@override", "@inaccessible"])

type Product
@key(fields: "id")
Expand Down

0 comments on commit 2487fa3

Please sign in to comment.