Could not find method scalaCompilerPlugin() for arguments [org.scala-lang:scala-compiler:2.9.2] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
05:08:12.503 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
05:08:12.503 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Try:
05:08:12.503 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Run with --scan to get full insights.
05:08:12.503 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
05:08:12.504 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Exception is:
05:08:12.505 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] org.gradle.api.GradleScriptException: A problem occurred evaluating root project ‘stephin’.
build.gradle:
buildscript {
repositories {
flatDir {
dirs ‘C:/Users/mgainty/.m2/REPOSI~1’
}
mavenLocal()
mavenCentral()
jcenter()
maven {
url ‘file://C:/Users/mgainty/.m2/REPOSI~1’
}
maven {
url “http://maven.ow2.org/maven2/”
}
maven {
url “http://maven.ow2.org/maven2-snapshot/”
}
maven {
url “https://plugins.gradle.org/m2/”
}
}
apply from: file(‘gradle/buildscript.gradle’), to: buildscript
apply from: “$rootDir/gradle/dependencies.gradle”
dependencies {
scalaCompilerPlugin “org.scala-lang:scala-compiler:2.9.2”
compile “org.scala-lang:scala-library:2.9.2”
appreciate a working example for scala-compiler plugin complete with working repository declarations?