Skip to content

Tests for spring-boot-gradle-plugin cannot be run in Eclipse due SLF4J 2.0 API #32626

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

Closed
philwebb opened this issue Oct 6, 2022 · 0 comments
Closed
Assignees
Labels
type: task A general task
Milestone

Comments

@philwebb
Copy link
Member

philwebb commented Oct 6, 2022

Running the spring-boot-gradle-plugin tests in Eclipse fails on 3.x due to a class cast exception. The cause is that Gradle's internal implementation is being ignored due to it being for SLF4J 1.7.

The following fixes the problem, but I'm not sure if it's the best way to do it.

configurations {
	documentation
	"testCompileClasspath" {
		resolutionStrategy.force("org.slf4j:slf4j-api:1.7.36")
	}
}
@philwebb philwebb added the type: task A general task label Oct 6, 2022
@philwebb philwebb added this to the 3.0.x milestone Oct 6, 2022
@philwebb philwebb self-assigned this Oct 14, 2022
@philwebb philwebb modified the milestones: 3.0.x, 3.0.0-RC1 Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: task A general task
Projects
None yet
Development

No branches or pull requests

1 participant