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
scaladoc warning: Flag -project set repeatedly #7487
Comments
The warning is annoying and confusing. Please escalate. The code in question is not commented and I am unclear what its intention is: val projectName = name.value
if (ScalaArtifacts.isScala3(sv)) {
val project = if (config == Compile) projectName else s"$projectName-$config"
if (scalaVersion.value.startsWith("3.0.0")) {
Seq("-project", project)
} else {
compileOptions ++ Seq("-project", project)
}
} else compileOptions |
Hard to be sure, but from the discussion on #6499, it looks to me like special-casing 3.0.0 in particular was probably intentional? Because it's already inside an |
steps
Task
doc
executed in Scala 3 projects with Scala versions other than 3.0.0* generates warning:Flag -project set repeatedly
problem
Probably this string comparison causes it. Maybe, the semantic version comparison should have been performed instead?
expectation
no warning
notes
The text was updated successfully, but these errors were encountered: