I follow the tutorial at http://spring.io/guides/gs/messaging-rabbitmq/ and first tried gradle with it. The script throws an error when I turn on the dependency spring-boot. Here is a snippet from my build.gradle file:
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'
$ gradle tasks fails with an error:
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;
This points to a string apply plugin: 'spring-boot'when I run it using a flag --debug. Any help would be greatly appreciated.
source
share