Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Plugin [id: 'org.springframework.boot', version: '2.0.2.RELEASE'] was not found

Gradle command throwing below Exception:

Where: Build file '/path_to_project_gradle/build.gradle' line: 21

  • What went wrong: Plugin [id: 'org.springframework.boot', version: '2.0.2.RELEASE'] was not found in any of the following sources:

  • Gradle Core Plugins (plugin is not in 'org.gradle' namespace)

  • Plugin Repositories (could not resolve plugin artifact 'org.springframework.boot:org.springframework.boot.gradle.plugin:2.0.2.RELEASE') Searched in the following repositories: Gradle Central Plugin Repository

Configuration :

JAVA Configuration : java version "1.8.0_181" Java(TM) SE Runtime Environment (build 1.8.0_181-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)

Gradle configuration

build.gradle

like image 888
Satya Attili Avatar asked Dec 24 '22 05:12

Satya Attili


2 Answers

You should toggle offline mode

enter image description here

like image 194
Lahcen Avatar answered Dec 26 '22 11:12

Lahcen


Or, in the IntelliJ, you can choose to use "use local gradle distribution" then uncheck the "offline work" in the next session.

like image 27
Jingyuan Xu Avatar answered Dec 26 '22 10:12

Jingyuan Xu