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

Change running without normal compilation to a property #165

Merged
merged 1 commit into from
Aug 23, 2021

Conversation

eyalroth
Copy link
Contributor

Fixes #153, #150.

This PR changes the way that running without normal compilation is enabled, from -x compileScala to -PscoverageCompileOnly.

This allows the plugin to detect that this option is selected earlier in the configuration stage, so then it can perform certain actions -- such as depending on dependent projects' scoverage compile tasks -- only if the option is enabled.

This should resolve #153 and also provide a partial solution to #150, so now parallel mode will work with normal compilation and will only fail to work without normal compilation (in multi-module projects).

…uration could be made only when the mode is enabled

### Compatibility with Consistent Versions Plugin

In order for the plugin to work alongside [Palantir's consistent versions plugin](https://github.com/palantir/gradle-consistent-versions),
the Scala version must be manually configured (via `scoverageScalaVersion`); otherwise, the plugin will attempt to
resolve the compilation classpath, which is prohibited by the versions plugin.

Migration to 6.1.1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is what would normally be considered a breaking change - should we be releasing 7.0.0 here?

I'm sure there is a better way of managing updates to the README, but for now could we remove this file from the PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@maiflai I was counting on you to make the right decision on whether this should bump the major version or not :)

@maiflai maiflai merged commit efd4e0e into scoverage:master Aug 23, 2021
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

Successfully merging this pull request may close these issues.

does compileScoverageScala need to depend on compileScoverageScala of its dependencies?
2 participants