Skip to content

Remove hamcrest-junit dependency in Junit4to5Migration recipe #575

@FieteO

Description

@FieteO

What version of OpenRewrite are you using?

2.16.0

How are you running OpenRewrite?

I am applying the Maven Command Line command on a single module project.

Can you share your configuration so that we can rule out any configuration issues?

I am not explicitly changing any configuration.

What is the smallest, simplest way to reproduce the problem?

<dependency>
	<groupId>org.hamcrest</groupId>
	<artifactId>hamcrest-junit</artifactId>
	<scope>test</scope>
</dependency>

What did you expect to see?

Dependency removed.

What did you see instead?

Dependency still declared.

<dependency>
	<groupId>org.hamcrest</groupId>
	<artifactId>hamcrest-junit</artifactId>
	<scope>test</scope>
</dependency>

Are you interested in contributing a fix to OpenRewrite?

yes

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomers

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions