Merge branch '4.1.x'

This commit is contained in:
Phillip Webb
2026-09-04 13:50:52 -07:00
3 changed files with 3 additions and 20 deletions
@@ -37,7 +37,6 @@ import org.springframework.boot.build.bom.ResolvedBom;
import org.springframework.boot.build.bom.ResolvedBom.ResolvedLibrary;
import org.springframework.boot.build.properties.BuildProperties;
import org.springframework.boot.build.properties.BuildType;
import org.springframework.util.Assert;
/**
* Generates Asciidoctor attributes for use with Antora.
@@ -60,8 +59,6 @@ public class AntoraAsciidocAttributes {
private final ResolvedBom resolvedBom;
private final Map<String, String> dependencyVersions;
private final Map<String, ?> projectProperties;
public AntoraAsciidocAttributes(Project project, BomExtension dependencyBom, ResolvedBom resolvedBom) {
@@ -71,7 +68,6 @@ public class AntoraAsciidocAttributes {
this.artifactRelease = ArtifactRelease.forProject(project);
this.libraries = dependencyBom.getLibraries();
this.resolvedBom = resolvedBom;
this.dependencyVersions = resolvedBom.dependencyVersions();
this.projectProperties = project.getProperties();
}
@@ -116,7 +112,6 @@ public class AntoraAsciidocAttributes {
attributes.put("version-graal", (String) this.projectProperties.get("graalVersion"));
attributes.put("version-protobuf-gradle-plugin",
(String) this.projectProperties.get("protobufGradlePluginVersion"));
addDependencyVersion(attributes, "grpc-api", "io.grpc:grpc-api");
}
private void addVersionAttributes(Map<String, String> attributes, Library library) {
@@ -128,16 +123,6 @@ public class AntoraAsciidocAttributes {
});
}
private void addDependencyVersion(Map<String, String> attributes, String name, String groupAndArtifactId) {
attributes.put("version-" + name, getVersion(groupAndArtifactId));
}
private String getVersion(String groupAndArtifactId) {
String version = this.dependencyVersions.get(groupAndArtifactId);
Assert.notNull(version, () -> "No version found for " + groupAndArtifactId);
return version;
}
private void addArtifactAttributes(Map<String, String> attributes) {
attributes.put("url-artifact-repository", this.artifactRelease.getDownloadRepo());
attributes.put("artifact-release-type", this.artifactRelease.getType());
@@ -37,11 +37,6 @@ url-native-build-tools-docs-maven-plugin={url-native-build-tools-docs}/maven-plu
url-paketo-docs=https://paketo.io/docs
url-paketo-docs-java-buildpack={url-paketo-docs}/buildpacks/language-family-buildpacks/java
url-protobuf-docs-gradle-plugin=https://github.com/google/protobuf-gradle-plugin
https://javadoc.io/doc/io.grpc/grpc-api/latest/io/grpc/package-summary.html
# === Javadoc Locations ===
javadoc-location-io-grpc={url-grpc-api-javadoc}
# === API References ===
@@ -574,6 +574,9 @@ bom {
github("https://github.com/grpc/grpc-java")
docs("https://grpc.io/docs/languages/java/")
releaseNotes("https://github.com/grpc/grpc-java/releases/tag/v{version}")
module("grpc-api") {
javadoc("https://javadoc.io/doc/io.grpc/grpc-api/{version}", "io.grpc")
}
}
}
library("Grpc Kotlin", "1.5.0") {