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

Doesn't work with Scala 2.13.16 #211

Open
hamedrnik opened this issue Jan 24, 2025 · 3 comments
Open

Doesn't work with Scala 2.13.16 #211

hamedrnik opened this issue Jan 24, 2025 · 3 comments

Comments

@hamedrnik
Copy link

Hi,

The plugin doesn't work with with Scala version 2.13.16. My build.gradle looks like the following:

plugins {
    id "org.scoverage" version "8.1"
}

scoverage {
    scoverageVersion = '2.3.0'
    scoverageScalaVersion = '2.13.16'
}

running with ./gradlew clean assemble -PscalaVersions=2.13.16:

* What went wrong:
A problem occurred configuring project ':server'.
> Could not determine the dependencies of task ':server:compileScoverageScala'.
   > Could not resolve all task dependencies for configuration ':server:scoverage'.
      > Could not find org.scoverage:scalac-scoverage-runtime_2.13.16:2.3.0.
        Searched in the following locations:
          - https://artifactory.company.com/artifactory/virttrunk/org/scoverage/scalac-scoverage-runtime_2.13.16/2.3.0/scalac-scoverage-runtime_2.13.16-2.3.0.pom
          - https://artifactory.company.com/artifactory/virttrunk/org/scoverage/scalac-scoverage-runtime_2.13.16/2.3.0/scalac-scoverage-runtime_2.13.16-2.3.0.jar
          - https://artifactory.company.com/artifactory/virttrunk/org/scoverage/scalac-scoverage-runtime_2.13.16/2.3.0/ivy.xml
          - https://artifactory.company.com/artifactory/virttrunk/org/scoverage/scalac-scoverage-runtime_2.13.16/2.3.0/scalac-scoverage-runtime_2.13.16.jar
          - https://artifactory.company.com/artifactory/bronze/trunk/org/scoverage/scalac-scoverage-runtime_2.13.16/2.3.0/ivy.xml
          - https://artifactory.company.com/artifactory/bronze/trunk/org/scoverage/scalac-scoverage-runtime_2.13.16/2.3.0/scalac-scoverage-runtime_2.13.16-2.3.0.jar
          - https://artifactory.company.com/artifactory/bronze/trunk/org/scoverage/scalac-scoverage-runtime_2.13.16/2.3.0/scalac-scoverage-runtime_2.13.16.jar
        Required by:
            project :server

Something is wrong when the version resolves to get scalac-scoverage-runtime package. scalac-scoverage-runtime_2.13.16 doesn't exist, but scalac-scoverage-runtime_2.13 exist. Any idea what's going wrong?

@maiflai
Copy link
Contributor

maiflai commented Jan 24, 2025

Does your build.gradle make reference to a project property called 'scalaVersions' somewhere?

I think you might need to use the same property when setting scoverageScalaVersion.

@hamedrnik
Copy link
Author

Does your build.gradle make reference to a project property called 'scalaVersions' somewhere?

I think you might need to use the same property when setting scoverageScalaVersion.

Yes, it uses scalaVersions there. I hardcoded the value to make sure it uses the correct Scala version.

@maiflai
Copy link
Contributor

maiflai commented Jan 26, 2025

Sorry, it would be very helpful if you could share a simple and complete reproduction of the problem.

Are you able to create a simple build.gradle that shows this please, or perhaps to share the full project?

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

2 participants