Spring-集成-Kafka BOM
Spring-Integration-Kafka BOM
快速提问。目前 spring-integration-kafka 似乎不是 spring-integration 的 BOM 的一部分,因此在 gradle 中指定依赖项时,必须声明版本(使用 spring 依赖插件时)。
有没有我应该导入的 BOM?没有也没关系。
plugins {
id 'org.springframework.boot' version '2.0.1.RELEASE'
id 'io.spring.dependency-management' version '1.0.5.RELEASE'
}
dependencyManagement {
imports {
// Need something here for spring-integration-kafka?
}
}
dependencies {
// Spring
compile "org.springframework.boot:spring-boot-starter-web"
compile "org.springframework.boot:spring-boot-starter-data-jpa"
compile "org.springframework.boot:spring-boot-starter-integration"
compile "org.springframework.integration:spring-integration-jms"
compile "org.springframework.integration:spring-integration-kafka:3.0.1.RELEASE"
}
不,任何现有的 BOM 中都没有这样的内容。
我们仍然不确定是否将其合并到核心项目中:https://jira.spring.io/browse/INT-3966。
然而,将其包含在 Spring 引导依赖管理中可能是一个很好的论据。随时针对 Spring Boot 提出问题。
原因之一可能是 Spring Integration Kafka & Spring Kafka 和 Apache Kafka 本身之间存在很强的兼容性。见页尾的table:https://projects.spring.io/spring-kafka/
快速提问。目前 spring-integration-kafka 似乎不是 spring-integration 的 BOM 的一部分,因此在 gradle 中指定依赖项时,必须声明版本(使用 spring 依赖插件时)。
有没有我应该导入的 BOM?没有也没关系。
plugins {
id 'org.springframework.boot' version '2.0.1.RELEASE'
id 'io.spring.dependency-management' version '1.0.5.RELEASE'
}
dependencyManagement {
imports {
// Need something here for spring-integration-kafka?
}
}
dependencies {
// Spring
compile "org.springframework.boot:spring-boot-starter-web"
compile "org.springframework.boot:spring-boot-starter-data-jpa"
compile "org.springframework.boot:spring-boot-starter-integration"
compile "org.springframework.integration:spring-integration-jms"
compile "org.springframework.integration:spring-integration-kafka:3.0.1.RELEASE"
}
不,任何现有的 BOM 中都没有这样的内容。
我们仍然不确定是否将其合并到核心项目中:https://jira.spring.io/browse/INT-3966。
然而,将其包含在 Spring 引导依赖管理中可能是一个很好的论据。随时针对 Spring Boot 提出问题。 原因之一可能是 Spring Integration Kafka & Spring Kafka 和 Apache Kafka 本身之间存在很强的兼容性。见页尾的table:https://projects.spring.io/spring-kafka/