Skip to content

Scoverage fails if dependency project does not use it too #136

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

Closed
JozoVilcek opened this issue Apr 17, 2020 · 0 comments
Closed

Scoverage fails if dependency project does not use it too #136

JozoVilcek opened this issue Apr 17, 2020 · 0 comments

Comments

@JozoVilcek
Copy link
Contributor

JozoVilcek commented Apr 17, 2020

I have a hybrid git repository, with multiple projects owned by different stakeholders. I want to introduce scoverage for some of them, but it breaks if they depend on others, which does not (yet) use scoverage plugin.

Looking ant the code here:
https://github.com/scoverage/gradle-scoverage/blob/master/src/main/groovy/org/scoverage/ScoveragePlugin.groovy#L166

I have a feeling it should work. But might be wrong. This is the error I get

Caused by: org.gradle.api.UnknownTaskException: Task with name 'compileScoverageScala' not found in project ':project:xyz.
        at org.gradle.api.internal.tasks.DefaultTaskCollection.createNotFoundException(DefaultTaskCollection.java:102)
        at org.gradle.api.internal.tasks.DefaultTaskCollection.createNotFoundException(DefaultTaskCollection.java:46)
        at org.gradle.api.internal.DefaultNamedDomainObjectCollection.getByName(DefaultNamedDomainObjectCollection.java:332)
        at org.gradle.api.internal.DefaultNamedDomainObjectCollection.getAt(DefaultNamedDomainObjectCollection.java:352)
        at org.gradle.api.internal.tasks.DefaultTaskCollection.getAt(DefaultTaskCollection.java:46)
        at org.gradle.api.tasks.TaskCollection$getAt$0.call(Unknown Source)
        at org.scoverage.ScoveragePlugin$_createTasks_closure5$_closure15.doCall(ScoveragePlugin.groovy:164)
        at org.scoverage.ScoveragePlugin$_createTasks_closure5.doCall(ScoveragePlugin.groovy:163)

Is there something wrong with my expectations?
Gradle: 6.0.1
ScoveragePlugin: 4.0.1
Scoverage: 1.4.1
Scala: 2.11

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

1 participant