Не удалось применить плагин org.springframework.boot 'JAVA

Программисты JAVA общаются здесь
Anonymous
Не удалось применить плагин org.springframework.boot '

Сообщение Anonymous »

У меня есть этот файл Gradle: < /p>

Код: Выделить всё

group 'ere'
version '1.0-SNAPSHOT'

buildscript {
repositories {
mavenCentral()
}
dependencies{
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.5.10.RELEASE")

}
}

apply plugin: "java"
apply plugin: 'org.springframework.boot'

jar {
manifest {
attributes(
'Main-Class': 'it.ere.Application'
)
}
}
sourceCompatibility = 1.8

repositories {
mavenCentral()
}

dependencies {
compile ("org.springframework.boot:spring-boot-starter-web")
compile group: 'com.microsoft.sqlserver', name: 'mssql-jdbc', version: '7.2.0.jre8'
compile 'com.google.code.gson:gson:2.8.6'
}
< /code>
Если я попытаюсь построить приложение, я получу следующую ошибку: < /p>
  Build file 'D:\ERE\JAVA_WORKSPACE\cleanECG\build.gradle' line: 16

A problem occurred evaluating root project 'eresult'.
> Failed to apply plugin 'org.springframework.boot'.
> Configuration with name 'runtime' not found.
Как я могу сделать, чтобы это исправить?

Подробнее здесь: https://stackoverflow.com/questions/795 ... ework-boot

Вернуться в «JAVA»