From 2dc022774a17b89daefa9f05afcc4c932ca38b36 Mon Sep 17 00:00:00 2001 From: Gustavo Martin Morcuende Date: Thu, 26 Jan 2017 10:07:08 +0100 Subject: [PATCH] Trying to make sense of how works spring-boot-gradle-plugin --- SpringJava/Kafka/SpringKafka/build.gradle | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/SpringJava/Kafka/SpringKafka/build.gradle b/SpringJava/Kafka/SpringKafka/build.gradle index 819aae3..e092372 100644 --- a/SpringJava/Kafka/SpringKafka/build.gradle +++ b/SpringJava/Kafka/SpringKafka/build.gradle @@ -12,6 +12,11 @@ buildscript { mavenCentral() } dependencies { + + // The spring-boot plugin automatically applies the Dependency Management Plugin and configures it to import the spring-boot-starter-parent bom. + // This provides a similar dependency management experience to the one that is enjoyed by Maven users. For example, it allows you to omit version numbers when declaring + // dependencies that are managed in the bom. To make use of this functionality, simply declare dependencies in the usual way, but leave the version number empty. + // Details of the versions that are provided can be found in: http://docs.spring.io/spring-boot/docs/current/reference/html/appendix-dependency-versions.html classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootGradlePluginVersion}") } } @@ -53,11 +58,20 @@ subprojects { dependencies { + // The spring-boot plugin automatically applies the Dependency Management Plugin and configures it to import the spring-boot-starter-parent bom. + // This provides a similar dependency management experience to the one that is enjoyed by Maven users. For example, it allows you to omit version numbers when declaring + // dependencies that are managed in the bom. To make use of this functionality, simply declare dependencies in the usual way, but leave the version number empty. + // Details of the versions that are provided can be found in: http://docs.spring.io/spring-boot/docs/current/reference/html/appendix-dependency-versions.html compile('org.springframework.boot:spring-boot-starter') compile('javax.inject:javax.inject:1') + + // Not included in spring-boot-gradle-plugin compile("org.springframework.kafka:spring-kafka:${springKafkaVersion}") - + + testCompile('org.springframework.boot:spring-boot-starter-test') + + // Not included in spring-boot-gradle-plugin testCompile("org.springframework.kafka:spring-kafka-test:${springKafkaVersion}") } -- 2.1.4