Skip to content

Webjar for GraphiQL fails to build due to version conflict #3889

Open
@jonblack

Description

@jonblack

When adding GraphiQL to a maven project using webjar using the following:

<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>graphiql</artifactId>
    <version>3.8.3</version>
    <scope>runtime</scope>
</dependency>

I get the following version conflict:

Could not collect dependencies for project com.bol.axle-parade:gqltest-app:jar:development-SNAPSHOT
[ERROR] Could not resolve version conflict among [org.webjars.npm:graphiql:jar:3.8.3 -> org.webjars.npm:graphiql__react:jar:[0.28.2,0.29.0-0) -> org.webjars.npm:types__codemirror:jar:[5.60.8,6.0.0-0), org.webjars.npm:codemirror-graphql:jar:2.2.0 -> org.webjars.npm:types__codemirror:jar:[0.0.90,0.0.91-0)]

I noticed that codemirror-graphql has @types/codemirror pinned to "^0.0.90" for three years now. Is this still relevant?

"// TEMPORARILY PINNED until we fix graphql 15 support": "",
"dependencies": {
"@types/codemirror": "^0.0.90",
"graphql-language-service": "5.3.0"
},

Maven also takes a long time to download all the dependencies. It would useful to have a fully contained dependency-free dist variant like swagger-ui-dist to avoid these problems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions