Created
April 2, 2025 14:03
-
-
Save DmytroMitin/ea9deca77f3773bbafc81c6367a64279 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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