我正在遵循http://spring.io/guides/gs/messaging-rabbitmq/上的教程,并第一次尝试使用 gradle 。当我包含依赖项时,脚本抛出错误spring-boot。这是我的 build.gradle 文件中的片段:
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.2.3.RELEASE")
}
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'spring-boot'
Run Code Online (Sandbox Code Playgroud)
$ gradle tasks失败并出现错误:
A problem occurred evaluating root project 'rabbit-mq-example'.
> org.gradle.api.tasks.TaskContainer.create(Ljava/lang/String;Ljava/lang/Class;)Lorg/gradle/api/Task;
Run Code Online (Sandbox Code Playgroud)
apply plugin: 'spring-boot'当我用标志运行它时,它指向该行--debug。任何帮助将不胜感激。