scoverage:pre-compile

Full name:

org.scoverage:scoverage-maven-plugin:2.0.6:pre-compile

Description:

Configures project for compilation with SCoverage instrumentation.

Supported compiler plugins:


This is internal mojo, executed in forked scoverage life cycle.

Attributes:

  • Requires a Maven project to be executed.
  • The goal is not marked as thread-safe and thus does not support parallel builds.
  • Since version: 1.0.0.
  • Binds by default to the lifecycle phase: generate-resources.

Optional Parameters

Name Type Since Description
<additionalForkedProjectProperties> String 1.4.0 Semicolon-separated list of project properties set in forked scoverage life cycle.

Example:
prop1=val1;prop2=val2;prop3=val3

User Property: scoverage.additionalForkedProjectProperties
<excludedFiles> String 1.0.0 Semicolon-separated list of regular expressions for source paths to exclude.

User Property: scoverage.excludedFiles
<excludedPackages> String 1.0.0 Semicolon-separated list of regular expressions for packages to exclude, "(empty)" for default package.

Example:
(empty);Reverse.*;.*AuthService.*;models\.data\..*

See https://github.com/scoverage/sbt-scoverage#exclude-classes-and-packages for additional documentation.

User Property: scoverage.excludedPackages
<highlighting> boolean 1.0.0 See https://github.com/scoverage/sbt-scoverage#highlighting.

Default: true
User Property: scoverage.highlighting
<scalaVersion> String 1.0.0 Scala version used for scalac compiler plugin artifact resolution.
User Property: scala.version
<scalacPluginVersion> String 1.0.0 Force scalac-scoverage-plugin version used.

Default: 2.2.1
User Property: scoverage.scalacPluginVersion
<skip> boolean 1.0.0 Allows SCoverage to be skipped.

Default: false
User Property: scoverage.skip

Parameter Details

<additionalForkedProjectProperties>

Semicolon-separated list of project properties set in forked scoverage life cycle.

Example:
prop1=val1;prop2=val2;prop3=val3
  • Type: java.lang.String
  • Since: 1.4.0
  • Required: No
  • User Property: scoverage.additionalForkedProjectProperties

<excludedFiles>

Semicolon-separated list of regular expressions for source paths to exclude.
  • Type: java.lang.String
  • Since: 1.0.0
  • Required: No
  • User Property: scoverage.excludedFiles

<excludedPackages>

Semicolon-separated list of regular expressions for packages to exclude, "(empty)" for default package.

Example:
(empty);Reverse.*;.*AuthService.*;models\.data\..*

See https://github.com/scoverage/sbt-scoverage#exclude-classes-and-packages for additional documentation.
  • Type: java.lang.String
  • Since: 1.0.0
  • Required: No
  • User Property: scoverage.excludedPackages

<highlighting>

  • Type: boolean
  • Since: 1.0.0
  • Required: No
  • User Property: scoverage.highlighting
  • Default: true

<scalaVersion>

Scala version used for scalac compiler plugin artifact resolution.
  • Type: java.lang.String
  • Since: 1.0.0
  • Required: No
  • User Property: scala.version

<scalacPluginVersion>

Force scalac-scoverage-plugin version used.
  • Type: java.lang.String
  • Since: 1.0.0
  • Required: No
  • User Property: scoverage.scalacPluginVersion
  • Default: 2.2.1

<skip>

Allows SCoverage to be skipped.
  • Type: boolean
  • Since: 1.0.0
  • Required: No
  • User Property: scoverage.skip
  • Default: false