GoogleCloudPlatform / GoogleCloudPlatform/cloud-opensource-java

Gradle publish plugin not using BOM to specify versions

Đang mở
#1,516 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
p3 Tech Debt
Ngôn ngữ chính
Java
Star
163
Fork
80
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.