Hi guys,
I’m new to gradle so sorry if the question has already been answered but after searching for hours I can’t find the answer.
I’m trying to apply a community plugin from an init.gradle file.
This is my init.gradle:
buildscript {
repositories {
maven {
url “https://plugins.gradle.org/m2/”
}
}
dependencies {
classpath “net.linguica.gradle:maven-settings-plugin:0.4”
}
}
apply plugin: "net.linguica.maven-settings"
And when running gradle -I init.gradle test I’m getting the following message:
FAILURE: Build failed with an exception.
- Where:
Initialization script ‘/Users/clem/git/kpi/init.gradle’ line: 13
- What went wrong:
A problem occurred evaluating initialization script.Plugin with id ‘net.linguica.maven-settings’ not found.
- Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 1.335 secs
This is my gradle -version output:
Gradle 2.9
Build time: 2015-11-17 07:02:17 UTC
Build number: none
Revision: b463d7980c40d44c4657dc80025275b84a29e31f
Groovy: 2.4.4
Ant: Apache Ant™ version 1.9.3 compiled on December 23 2013
JVM: 1.8.0_66 (Oracle Corporation 25.66-b17)
OS: Mac OS X 10.11.1 x86_64
Any idea how can I make that work ??
Thanks in advance.