Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Possibility to add graphql to existing springbootproject #596

@wiedehoeft

Description

@wiedehoeft

Hi,
which dependencies would you add to an existing springboot project?
The graphql dependency seems to add all dependencies, which an existing springboot project already have, again.
After adding graphql-spring-boot we have had many dependencies on classpath twice, which results in classpath resolution problems.
The current workaround is a list like this:

  implementation('com.graphql-java-kickstart:graphql-spring-boot-starter:11.0.0') {
    exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging'
    exclude group: 'org.springframework.boot', module: 'spring-boot'
    exclude group: 'org.springframework.boot', module: 'spring-actuator'
    exclude group: 'org.springframework.boot', module: 'spring-actuator-autoconfigure'
    exclude group: 'org.springframework.boot', module: 'spring-boot-autoconfigure'
    exclude group: 'org.springframework.boot', module: 'spring-boot-starter'
    exclude group: 'org.springframework.boot', module: 'spring-boot-starter-actuator'
    exclude group: 'org.springframework.boot', module: 'spring-boot-starter-json'
    exclude group: 'org.springframework.boot', module: 'spring-boot-starter-tomcat'
    exclude group: 'org.springframework.boot', module: 'spring-boot-starter-web'
    exclude group: 'org.springframework', module: 'spring-aop'
    exclude group: 'org.springframework', module: 'spring-beans'
    exclude group: 'org.springframework', module: 'spring-context'
    exclude group: 'org.springframework', module: 'spring-core'
    exclude group: 'org.springframework', module: 'spring-expression'
    exclude group: 'org.springframework', module: 'spring-jcl'
    exclude group: 'org.springframework', module: 'spring-web'
  }

But with this configuration we have trouble with our Wildfly deployment.

The only other solution seems to be, to lookup the spring boot version from graphql-spring-boot and use the same version in existing spring-boot project, or did we miss something?

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