GoogleCloudPlatform / GoogleCloudPlatform/cloud-opensource-java

Gradle publish plugin not using BOM to specify versions

未关闭
#1,516 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
p3 Tech Debt
主要语言
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.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。