Montag, 30. März 2020

Spring Boot baut nicht auf Gitlab.com in der Gitlab-CI

Problem: Die Gitlab-CI auf Gitlab.com läuft beim Build eines Spring Boot 2.2.x Projekts in folgenden Fehler: 

 Plugin [id: 'org.springframework.boot', version: '2.2.6.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.2.6.RELEASE')
   Searched in the following repositories:
     Gradle Central Plugin Repository


Lösung: Die Repositories in der Datei "build.gradle" muss um folgende Einträge ergänzt werden:

repositories {
    jcenter()
    mavenCentral()
    maven {
        url "https://plugins.gradle.org/m2/"    }
}

Keine Kommentare:

Kommentar veröffentlichen