Error resolving plugin, You must specify a URL for a Maven repository

Viewed 6134

I have a problem after clone the repo, during first gredle built of my springboot project an error appear

Error resolving plugin [id: 'some plugin', version: 'plugin version']
> You must specify a URL for a Maven repository.

in my bulid.gradle file just written like this

plugins {
  id "some plugin" version "${PluginVersion}"
}

Do i have to do a setting. Im using Intelli J in this project. Thanks in Advance

2 Answers

You need to specify url in repositories

 repositories {
   maven { url "http://maven.springframework.org/release" }
   maven { url "https://maven.fabric.io/public" }
 }

You have to specify the repository URL according to your need.

Check Gradle documentation for more.

You need to specify maven repository where your plugins are located in settings.gradle e.g.

pluginManagement {
    repositories {
        maven {
            url 'urlToRepository'
        }
        maven {
            url 'anotherUrlToRepository'
        }
        gradlePluginPortal()
    }
}
Related