Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflict resolution issues for projects that depend on tomcat-embed-core and jakarta.servlet.jsp-api #13

Open
oboenikui opened this issue Sep 9, 2023 · 0 comments

Comments

@oboenikui
Copy link

When a project depends on both org.apache.tomcat.embed:tomcat-embed-core and jakarta.servlet.jsp:jakarta.servlet.jsp-api, this plugin will change jakarta.servlet.jsp-api to tomcat-embed-core.
However, since tomcat-embed-core does not contain jakarta.servlet.jsp.* classes, so error occurs.
I think org.apache.tomcat.embed:tomcat-embed-jasper is the correct package to resolve dependency.

Here is an example of a project setting where the problem occurs.

// example of build.gradle.kts
plugins {
    id("com.netflix.nebula.jakartaee-migration") version "0.18.0"
    java
    application
}

group = "org.example"
version = "1.0-SNAPSHOT"

repositories {
    mavenCentral()
}

jakartaeeMigration {
    migrate()
}

dependencies {
    // library that has dependency of tomcat-embed-core
    implementation("org.springframework.boot:spring-boot-starter-web:3.1.3")
    implementation(platform("jakarta.platform:jakarta.jakartaee-bom:10.0.0"))
    implementation("jakarta.servlet.jsp:jakarta.servlet.jsp-api")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant