googleapis / java-cloud-bom

Apache License 2.0
38 stars 24 forks source link

BOM for com.google.apis:google-api-services-* #5279

Open stickfigure opened 2 years ago

stickfigure commented 2 years ago

It would be extremely helpful to have a BOM that gives us google-api-services versions that are compatible with libraries-bom versions.

lqiu96 commented 2 years ago

You should be able to determine the google-api-services-* version in the libraries bom: https://github.com/googleapis/java-shared-dependencies/blob/5415f857fdbd97c62dc88e4d590b57d6a1425062/first-party-dependencies/pom.xml#L161

Libraries Bom pulls it in via: https://github.com/googleapis/java-cloud-bom/blob/99fd5e4c544e5b95db9bb7c66afaf4351ffe2d61/libraries-bom/pom.xml#L67

SanjayVas commented 2 months ago

Is there a reason these aren't included in the respective product BOMs? I was surprised to find that e.g. google-cloud-storage-bom does not manage com.google.apis:google-api-services-storage.

Artifact resolution for my project ended up picking com.google.apis:google-api-services-storage:v1-rev20220705-2.0.0 even when using the latest libraries-bom (26.45.0) at higher precedence than other BOMs (I assume this is being picked up due to using an older version of org.apache.beam:beam-sdks-java-bom).