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

jacocoExcludes setting does not work #234

Open
muncleben opened this issue Oct 17, 2022 · 2 comments
Open

jacocoExcludes setting does not work #234

muncleben opened this issue Oct 17, 2022 · 2 comments

Comments

@muncleben
Copy link

Expected vs Actual Behaviour

It should be set correctly with jacocoExcludes like below:
jacocoExcludes := jacocoExcludes(Seq("com.bpshare.Application"))

Instead it shows error: Type mismatch
Refer to the attachment screenshot for details.

Steps to Reproduce

In build.sbt file, try to exclude main Scala file with jacocoExcludes := jacocoExcludes(Seq("com.bpshare.Application")),

but it shows error: Type mismatch. Refer to the attachment screenshot for details.

Environment

  • SBT version: 1.4.3
  • Plugin version: 3.4.0
  • Scala version(s): 2.12.6
  • Java version: 1.8
  • Link to project source: NA
    2022-10-17_15h12_51
@Zejnilovic
Copy link

Zejnilovic commented Nov 29, 2022

Hello @muncleben, while I am just a user, I might have a solution for you.

jacocoExcludes := Seq("com.bsphare.Application")

No need to wrap it in the second jacocoExcludes.

@dexterhu
Copy link

dexterhu commented Mar 16, 2023

also make sure it's inside the settings sequence block, depending on your project structure.

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

3 participants