Skip to content

Instantly share code, notes, and snippets.

@DmytroMitin
Created April 2, 2025 14:03
Show Gist options
  • Save DmytroMitin/ea9deca77f3773bbafc81c6367a64279 to your computer and use it in GitHub Desktop.
Save DmytroMitin/ea9deca77f3773bbafc81c6367a64279 to your computer and use it in GitHub Desktop.
plugins {
id 'scala'
id 'application'
}
group = 'org.example'
version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
zinc ('org.scala-sbt:zinc_2.13:1.10.8'){
exclude( group: 'org.scala-lang', module: 'scala-library')
}
zinc 'org.scala-lang:scala-library'
zinc 'org.scala-lang:scala-compiler'
}
application {
mainClass = 'com.example.SMain'
}
scala {
scalaVersion = '2.12.15'
zincVersion = '1.10.8'
}
configurations.zinc {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
if (details.requested.group == 'org.scala-lang') {
details.useVersion '2.13.16'
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment