Skip to content
This repository has been archived by the owner on Apr 9, 2021. It is now read-only.

Feature request: Block springframework starter artifactIds #41

Open
ruud-de-jong opened this issue Mar 14, 2019 · 2 comments
Open

Feature request: Block springframework starter artifactIds #41

ruud-de-jong opened this issue Mar 14, 2019 · 2 comments

Comments

@ruud-de-jong
Copy link

In our company, we like to control everything going to production.
Therefore, dependency management is very important.
Some lazy developers tend to use the Spring starter packages, like org.springframework.boot:spring-boot-starter-actuator
These starter packages usually tend to pull in other unwanted packages.
It would be nice to have a rule which can block Springframework starter packages in general.

When not parameterized, it could scan for "groupId".startsWith "org.springframework" and "artifactId".contains "-starter-"

@zziga
Copy link

zziga commented Mar 15, 2019

@ruud-de-jong, you might want to check out https://maven.apache.org/enforcer/enforcer-rules/bannedDependencies.html

@ruud-de-jong
Copy link
Author

@ruud-de-jong, you might want to check out https://maven.apache.org/enforcer/enforcer-rules/bannedDependencies.html

@zziga Thanks. I missed option. It does exactly what it should.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants