bmuschko / gradle-clover-plugin

Gradle plugin for generating a code coverage report using Clover
Apache License 2.0
74 stars 49 forks source link

licenseLocation is enforced even when using OpenClover #85

Closed Alex-Vol closed 7 years ago

Alex-Vol commented 7 years ago

The plugin enforces a default location "$projectDir/clover.license" to be an existing file even when using OpenClover. With the introduction of OpenClover the licenseLocation should not assume a default location but instead have no assigned value. If a value is assigned we should validate it is an existing file otherwise do nothing.

:cloverAggregateDatabases FAILED

FAILURE: Build failed with an exception.

* What went wrong:
A problem was found with the configuration of task ':cloverAggregateDatabases'.
> File '/home/user/myProject/clover.license' specified for property 'licenseFile' does not exist.
Alex-Vol commented 7 years ago

This workaround exists to alleviate the issue since OpenClover does not expect or need an actual license file

clover {
    licenseLocation = File.createTempFile('clover', '.license').absolutePath
}
Alex-Vol commented 7 years ago

Fixed, will be part of the 2.1.1 milestone