#build.gradle #pipeline #buildkite
Вопрос:
Запустите сборку с помощью агента buildkite (AWS EC2 Linux2) и обнаружите ошибку:
FAILURE: Build failed with an exception. What went wrong: A problem occurred configuring root project 'apply-service'. gt; Could not resolve all files for configuration ':classpath'. gt; Could not resolve org.springframework.boot:spring-boot-gradle-plugin:2.1.3.RELEASE. Required by: project : gt; Could not resolve org.springframework.boot:spring-boot-gradle-plugin:2.1.3.RELEASE. gt; Could not parse POM https://plugins.gradle.org/m2/org/springframework/boot/spring-boot-gradle-plugin/2.1.3.RELEASE/spring-boot-gradle-plugin-2.1.3.RELEASE.pom ...
В кодексе:
строить.Грейфер
buildscript { ext { kotlinVersion = '1.2.60' springBootVersion = '2.0.4.RELEASE' gradlePluginVersion = '1.0.0' } dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}") classpath("org.jetbrains.kotlin:kotlin-allopen:${kotlinVersion}") classpath("org.junit.platform:junit-platform-gradle-plugin:${gradlePluginVersion}") classpath("org.jetbrains.kotlin:kotlin-noarg:${kotlinVersion}") } } plugins { id 'org.jetbrains.kotlin.plugin.jpa' version '1.3.21' id 'org.springframework.boot' version '2.1.3.RELEASE' id 'org.jetbrains.kotlin.jvm' version '1.3.21' id 'org.jetbrains.kotlin.plugin.spring' version '1.3.21' id "io.gitlab.arturbosch.detekt" version "1.0.0.RC8" id "org.sonarqube" version "2.7" id "org.flywaydb.flyway" version "5.1.4" } apply plugin: 'eclipse' apply plugin: 'idea' apply plugin: 'kotlin' apply plugin: 'kotlin-spring' apply plugin: 'org.springframework.boot' apply plugin: 'io.spring.dependency-management' apply plugin: 'org.junit.platform.gradle.plugin' apply plugin: 'jacoco' apply plugin: 'kotlin-jpa'
gradle-обертка.свойства
distributionUrl=https://services.gradle.org/distributions/gradle-4.5.1-all.zip
Пытался:
- восстановите его, сборка прошла.
Интересно, почему произошел провал? Это из-за проблемы с сетью?