Skip to content

Gradle builds automatically exclude too many dependencies #1103

@apahne

Description

@apahne

I am using spring-boot 1.1.1.RELEASE

My dependencies are declared in gradle like this:

dependencies {
    compile("org.springframework.boot:spring-boot-starter-web:$versions.springBoot")
    compile("org.springframework.boot:spring-boot-starter-jetty:$versions.springBoot")
    compile("org.springframework.boot:spring-boot-starter-actuator:$versions.springBoot")
}

The application starts fine, as expected and Jetty is used to serve web requests.

However, when I try to exclude tomcat dependencies

    configurations {
        compile.exclude module: "spring-boot-starter-tomcat"
    }

then the application context will be initialized and then shut down instantly. Serving web content is not enabled at all without tomcat dependencies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions