我正在使用 Gradle Spring依赖管理器插件在项目中导入 Maven BOM 定义。而且我需要排除 BOM 中定义的一个模块。
做这样的事情会很好,但 mavenBom 只接受字符串。
dependencyManagement {
imports {
mavenBom ('io.spring.platform:platform-bom:1.0.1.RELEASE') {
exclude 'com.datastax.cassandra:cassandra-driver-dse'
}
}
}
是否可以通过其他方式排除 BOM 中定义的特定模块?