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

Add ability to disable an entire module #64

Open
Daenyth opened this issue May 19, 2020 · 1 comment
Open

Add ability to disable an entire module #64

Daenyth opened this issue May 19, 2020 · 1 comment

Comments

@Daenyth
Copy link

Daenyth commented May 19, 2020

My use case is that I have a multi-module repository, and I want to run this task on some, but not all, of the modules. I'd like it to be "opt out" so that new modules by default have it added, but that it gets skipped for the ones that shouldn't need it (this is related to #40)

Something like unusedCompileDependencies / enabled := false inside a module's .settings() block.

I think I should be able to put together a pull request that adds this behavior, if it's something you'd merge in

Right now it's possible to hack this in like so:

(project in file("blahblah")).settings(
  unusedCompileDependencies := Def.task(Set.empty[Dependency]).value,
)
@keynmol
Copy link
Contributor

keynmol commented Nov 28, 2020

What about

checkUnusedDependencies := true/false
checkUndeclaredDependencies := true/false

?

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

2 participants