Skip to content

Instantly share code, notes, and snippets.

@DmytroMitin
Created April 2, 2025 00:25
Show Gist options
  • Save DmytroMitin/2a7fe151fbc379f82f739ab17f915733 to your computer and use it in GitHub Desktop.
Save DmytroMitin/2a7fe151fbc379f82f739ab17f915733 to your computer and use it in GitHub Desktop.
plugins {
id 'scala'
id 'application'
}
group = 'org.example'
version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
}
application {
mainClass = 'com.example.SMain'
}
scala {
scalaVersion = '2.12.15'
zincVersion = '1.10.8'
}
zinc ("com.typesafe.zinc:zinc:1.10.8"){
exclude( group: "org.scala-lang", module: "scala-library")
}
zinc "org.scala-lang:scala-library"
zinc "org.scala-lang:scala-compiler"
dmytro@...:~/projects/gradledemo2$ ./gradlew clean
[Incubating] Problems report is available at: file:///home/dmytro/projects/gradledemo2/build/reports/problems/problems-report.html
FAILURE: Build failed with an exception.
* Where:
Build file '/home/dmytro/projects/gradledemo2/build.gradle' line: 38
* What went wrong:
A problem occurred evaluating root project 'gradledemo2'.
> Could not find method zinc() for arguments [com.typesafe.zinc:zinc:1.10.8, build_dt3puwu0sshz7vh6jzfd9v1qb$_run_closure5@2364ee23] on root project 'gradledemo2' of type org.gradle.api.Project.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.13/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD FAILED in 467ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment