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

org.assertj:assertj-core dependency should have test scope #654

Closed
cdivilly opened this issue Jan 14, 2025 · 1 comment
Closed

org.assertj:assertj-core dependency should have test scope #654

cdivilly opened this issue Jan 14, 2025 · 1 comment
Labels
bug An issue describing a bug in the code
Milestone

Comments

@cdivilly
Copy link

cdivilly commented Jan 14, 2025

Version

2.14.0

Bug description

Even though the dependency for org.assertj:assertj-core is in the section labelled for test dependencies it does not have a <scope>test</scope> element, leading to it being treated as a compile scope dependency, which causes downstream depenencies to include org.assertj:assertj-core unecessarily.

        <dependency>
            <groupId>org.assertj</groupId>
            <artifactId>assertj-core</artifactId>
            <version>3.26.3</version>
        </dependency>

Actual behavior

org.assertj:assertj-core dependency is included by downstream dependencies of sshd-contrib, even though it is not used at runtime

        <dependency>
            <groupId>org.assertj</groupId>
            <artifactId>assertj-core</artifactId>
            <version>3.26.3</version>
        </dependency>

Expected behavior

org.assertj:assertj-core should have a <scope>test</scope> element so that it is only used at test time.

        <dependency>
            <groupId>org.assertj</groupId>
            <artifactId>assertj-core</artifactId>
            <version>3.26.3</version>
            <scope>test</scope>
        </dependency>

Relevant log output

Other information

No response

@tomaswolf
Copy link
Member

Thanks for reporting; fixed.

@tomaswolf tomaswolf added the bug An issue describing a bug in the code label Jan 24, 2025
@tomaswolf tomaswolf added this to the 2.14.1 milestone Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An issue describing a bug in the code
Projects
None yet
Development

No branches or pull requests

2 participants