Hi,
I am using Gradle wrapper 6.6 and want to compile with scala-library:2.11.12. This require zincVersion to be 1.2.1 (org.scala-sbt:zinc_2.11:1.2.1 and org.scala-sbt:zinc-classpatch_2.11:1.2.1). Below configuration I made but still take default ZInc version 1.3.5.
Below is snippet tried but not helped:
plugins {
id ‘scala’
}
scala {
zincVersion = “1.2.1”
}
configurations.all {
resolutionStrategy {
force ‘org.scala-lang:scala-library:2.11.12’
}
}
dependencies {
compile (group: ‘org.scala-lang’, name : ‘scala-library’, version:‘2.11.12’){transitive=false}
}
Also tried adding
configurations.all {
resolutionStrategy {
force ‘org.scala-sbt:zinc_2.11:1.2.1’
force ‘org.scala-sbt:zinc-classpatch_2.11:1.2.1’
force ‘org.scala-lang:scala-library:2.11.12’
}
}
Configuring the Zinc compiler suggests this can be done. Please suggest if this can be done in 6.7 only?
Looked at gradle code. Looks DefaultScalaPluginExtension gets DefaultScalaToolProvider.DEFAULT_ZINC_VERSION as 1.3.5. Does it require writing custom plugin?