-
Notifications
You must be signed in to change notification settings - Fork 45
scala-major version detection fails when 'scala-library' actual version customized via resolutionStrategy #97
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
Comments
Sorry about this - please could you try: scoverage.scoverageScalaVersion = project.scalaVersion as a workaround? Thanks, |
changing plugins {
id "com.adtran.scala-multiversion-plugin" version "1.0.35"
id "org.scoverage" version "3.0.0"
}
repositories {
jcenter()
}
scoverage.scoverageScalaVersion = project.scalaVersion
dependencies {
// compile -> implementation
implementation "org.scala-lang:scala-library:%scala-version%"
testImplementation 'junit:junit:4.12'
testImplementation 'org.scalatest:scalatest_%%:3.0.5'
testRuntimeOnly 'org.scala-lang.modules:scala-xml_%%:1.1.1'
} renders following error
|
Ah. Can you try project.scalaSuffix? I expect you will need to strip the underscore first. |
putting |
I created a PR to support any resolution strategy. Spring's dependency management was supported earlier by manually checking if it's configured; with this PR, the plugin is not aware of Spring's plugin directly, but indirectly via the resolution strategy. |
For example using
gradle-scoverage
withgradle-scala-multiversion-plugin
impossiblebuild.gradle
gradle.properties
scalaVersions = 2.12.8, 2.11.12
./gradlew --stacktrace
The text was updated successfully, but these errors were encountered: