GoogleCloudPlatform / GoogleCloudPlatform/cloud-opensource-java
Gradle publish plugin not using BOM to specify versions
- 主要語言
- Java
- 星號
- 163
- 分支
- 80
- PR 合併指標
- 30 天內沒有已合併 PR
描述
Gradle's (official) publish plugin does not seem to read BOMs when generating pom.xml.
```
> Task :publishPlugins FAILED
Caching disabled for task ':publishPlugins' because:
Build cache is disabled
Task ':publishPlugins' is not up-to-date because:
Task has not declared any outputs despite executing actions.
Could not resolve the version of: com.google.guava:guava
Use the following workaround to resolve this version for pom generation:
http://plugins.gradle.org/help/plugin/missing-dependency-version
:publishPlugins (Thread[Execution worker for ':',5,main]) completed. Took 0.103 secs.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':publishPlugins'.
> No version found for com.google.guava:guava on pom generation.
* Try:
Run with --debug option to get more log output. Run with --scan to get full insights.
* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':publishPlugins'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:207)
```
Investigate how we can use BOM to publish the Gradle plugin.
貢獻指南
研究方向
先在 :publishPlugins 工作中重現失敗,並閱讀產生的 pom.xml 及其相依性版本解析路徑。調查由 BOM 管理的 com.google.guava:guava 相依性在 Gradle 外掛程式發布期間如何表示;完成的標準是外掛程式可以使用 BOM 指定的版本發布,而不需要缺少版本的 workaround。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- java
- 領域
- build-system, release
- Issue 類型
- 功能
- 難度
- 5/5
- 預估耗時
- 一週以上
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 25/100