Am I doing something wrong here.
Stacktrace is not very helpfull either.
Error Message
FAILURE: Build failed with an exception.
* Where:
Initialization script '/home/$USER/.gradle/init.gradle' line: 37
* What went wrong:
Plugin with id 'com.netflix.gradle.plugins.rpm.RpmPlugin' not found.
* Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Exception is:
org.gradle.api.plugins.UnknownPluginException: Plugin with id 'com.netflix.gradle.plugins.rpm.RpmPlugin' not found.
at org.gradle.api.internal.plugins.DefaultPluginManager.apply(DefaultPluginManager.java:131)
at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction.applyType(DefaultObjectConfigurationAction.java:120)
You are using the implementation class of the plugins (ex: com.netflix.gradle.plugins.rpm.RpmPlugin) as the ID. The ID of that particular plugin is nebula.rpm.
However, you do need to use the implementation class, not the ID, in an init script. In order to do that, you should remove the quotes around the implementation classes:
If you try to reference a class in an init script without adding it to the classpath, that error will occur in any version of Gradle. The line you copied from the thread isn’t stand-alone. It’s within the context of the larger file posted by the original poster.