Comments (2)
Hello 👋
It appears to be a Maven issue with your project setup - verify whether you import a BOM that specifies the old version or some other library transitively picks it up. Maven is rather crude with its dependency resolution strategy and uses shortest-path algorithm to select the first one it encounters (if path depth is the same then its picked in the the order they are defined in the pom file) so given something like
- foo-dependency
|- bar-dependency v0.0.1
- baz-dependency
|- bar-dependency v1.0.0
Maven will pick up the transitive dependency of foo-dependency
even though baz-dependency
uses new version.
You can use dependency:tree
goal to check out the resolution. See https://maven.apache.org/plugins/maven-dependency-plugin/examples/filtering-the-dependency-tree.html (use verbose
option to get full tree).
from federation-jvm.
Hey, @dariuszkuc Thanks for the quick reply.
the result of maven dependency tree:
[INFO] +- com.apollographql.federation:federation-graphql-java-support:jar:2.0.4:compile
[INFO] | +- com.apollographql.federation:federation-graphql-java-support-api:jar:2.0.4:compile
[INFO] | +- com.graphql-java:graphql-java:jar:19.0:compile
[INFO] | | +- com.graphql-java:java-dataloader:jar:3.2.0:compile
[INFO] | | | - (org.slf4j:slf4j-api:jar:1.7.30:compile - version managed from 1.7.36; omitted for duplicate)
[INFO] | | +- org.reactivestreams:reactive-streams:jar:1.0.3:compile (version managed from 1.0.2)
[INFO] | | - (org.slf4j:slf4j-api:jar:1.7.30:compile - version managed from 1.7.35; scope updated from runtime; omitted for duplicate)
[INFO] | +- org.slf4j:slf4j-api:jar:1.7.30:compile
[INFO] | - com.google.protobuf:protobuf-java:jar:3.14.0:compile (version managed from 3.21.4)
After checking the maven docs, I suppose we need to put the import dependency under the dependencyManagement part.
Will close this issue as it is resolved.
from federation-jvm.
Related Issues (20)
- _service query should return non-nullable _Service type
- Composed directives must be consistently named across subgraph implementations and not use @federation__ prefix HOT 1
- Enable full CI/CD HOT 1
- Update Spring example to use the Apollo Router HOT 1
- Classpath issue on 2.1.0 HOT 2
- _entities error HOT 10
- @link appears to fail on "extend schema" HOT 4
- GraalVM Reachability Metadata for Apollo Federation JVM
- Add support for Federation v2.3 spec HOT 4
- @inaccessible directives no longer returned in _service { sld } query, after release 0.7.0 HOT 5
- Feature Request: Support Error Masking Behavior
- 'link' directive definition is missing 'for' parameter HOT 2
- generateServiceSDL in ServiceSDLPrinter - invalid includeDirectives configfuration? HOT 1
- Action Required: Fix Renovate Configuration
- Federation 2.6 support HOT 1
- Importing and renaming @key directive HOT 1
- Federation scalars declared in the schema file don't get wired up by the transformer HOT 3
- N+1 problem with fetchEntities HOT 5
- Add configuration options to transformation of sdl or check for federation directives HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from federation-jvm.