Skip to content

Cannot config coverageType in scoverage block #120

Closed
@gabearwin

Description

@gabearwin
  • scala version = 2.11.8
  • gradlew version = 5.1
  • The version of the gradle-scoverage plugin I use is 3.2.0.
  • My project is a multi-module project organized by gradle.

I configured the coverage code block as follows in the README document, but the project will report an error.

scoverage {
    minimumRate = 0.8
    coverageType = "Line"
}

ERROR: Cannot set the value of a property of type org.scoverage.CoverageType using an instance of type java.lang.String.

I also tried to write like this coverageType = CoverageType.Line, but still not work.

I found relevant information on the Internet, basically it is no problem to write like the above. So I am confused, where is my problem? Can anyone please help me?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions