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

Consider adding a metabrowseForceCompile task to sbt-metabrowse #64

Open
jonas opened this issue Sep 13, 2017 · 1 comment
Open

Consider adding a metabrowseForceCompile task to sbt-metabrowse #64

jonas opened this issue Sep 13, 2017 · 1 comment

Comments

@jonas
Copy link
Collaborator

jonas commented Sep 13, 2017

If sbt-metabrowse has some kind of metabrowseForceCompile command that inserts the semanticdb-scalac compiler plugin and -Yrangepos scalacOptions, then we can add the plugin globally and run that command in any build without fiddling with the build settings.

Some builds do libraryDependencies := ... and scalacOptions := ... which overrides addCompilerPlugin from the plugin.

@olafurpg
Copy link
Member

We can achieve this with a command that updates the build state, here is prior art https://gist.github.com/olafurpg/5ea6b16bbdb8b49f47a661acedbe1d36
With SemanticdbPlugin installed, you can run the mbrowse command and it enables the semanticdb compiler plugin if it's not already enabled and then runs compile in all projects.

@jonas jonas changed the title Consider adding a metadocForceCompile task to sbt-metadoc Consider adding a metabrowseForceCompile task to sbt-metabrowse Oct 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants