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

Make it possible to exclude certain subprojects #12

Open
jqno opened this issue Aug 9, 2016 · 0 comments
Open

Make it possible to exclude certain subprojects #12

jqno opened this issue Aug 9, 2016 · 0 comments

Comments

@jqno
Copy link
Contributor

jqno commented Aug 9, 2016

We're including a new subproject of existing legacy code in our project. I'd like to be able to disable the FindSecBugs check on that project, because we're going to leave the code as-is anyway.

I tried this:

lazy val mysubmodule = (project in file("mysubmodule"))
  .disableplugins(FindSecBugs)

But I get the following error:

[error] sbt.AutoPluginException: Error determining plugins for project 'mysubmodule' in /Users/jqno/workspaces/myproject/mysubmodule:
[error] Contradiction in selected plugins.  These plugins were both included and excluded: nl.codestar.sbtfindsecbugs.FindSecBugs

This is a known issue for SBT AutoPlugins: sbt/sbt#1926

I'm not sure how to solve this.

  • Maybe it doesn't have to be an AutoPlugin?
  • I notice the HerokuPlugin can be disabled, maybe they do something differently from us?
  • Instead of excluding entire submodules, maybe we can add a setting for a mask for package names to exclude?
  • Maybe something else?
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

1 participant