亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

Gradle 5 中是否有 dependencyManagement.importe

Gradle 5 中是否有 dependencyManagement.importe

森林海 2023-05-24 14:43:38
我需要從類似于 org.springframework.boot.spring-boot-dependencies 的 BOM 中獲取像“jackson.version”這樣的屬性。我知道我可以通過使用 dependencyManagement.importedProperties 使用 io.spring.dependency-management 插件來做到這一點。但是 Gradle 的 5 Maven BOM 支持有什么辦法呢?這是 io.spring.dependency-management(Kotlin DSL) 的示例:dependencyManagement {    imports {        mavenBom("org.springframework.cloud:spring-cloud-dependencies:Greenwich.RELEASE")    }}dependencies {    implementation("org.group:artifact:${dependencyManagement.importedProperties["spring-cloud-aws.version"]}")}我想對 Gradle 5 做同樣的事情:dependencies {    implementation(platform("org.springframework.cloud:spring-cloud-dependencies:Greenwich.RELEASE}"))    implementation("org.group:artifact:${?["spring-cloud-aws.version"]}")}如何獲取“spring-cloud-aws.version”(BOM 中的任何屬性)?
查看完整描述

1 回答

?
12345678_0001

TA貢獻1802條經驗 獲得超5個贊

目前沒有。有許多功能尚不可用。您可以計劃看到它在更高版本的 Gradle 中實現,或者更可能是等效功能。


查看完整回答
反對 回復 2023-05-24
  • 1 回答
  • 0 關注
  • 204 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號