Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crossdoc: Include transitive project dependencies in linking as well #145

Merged
merged 2 commits into from
Aug 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ private CrossdocExtension createExtension(final Project project) {
private void addUnpackedResultToJavadocConfiguration(final Project project) {
// Register unpacked Javadoc as an artifact for cross-linking
project.getConfigurations().matching(c -> c.getName().equals(JavaPlugin.JAVADOC_ELEMENTS_CONFIGURATION_NAME)).configureEach(c -> {
c.extendsFrom(project.getConfigurations().getByName(JavaPlugin.API_ELEMENTS_CONFIGURATION_NAME)); // include transitive dependencies
c.getOutgoing().getVariants().create("files", v -> {
final TaskProvider<Javadoc> javadocTask = project.getTasks().named(JavaPlugin.JAVADOC_TASK_NAME, Javadoc.class);
v.artifact(javadocTask.map(it -> it.getDestinationDir()), a -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
import java.lang.annotation.Target;
import net.kyori.mammoth.test.TestVariant;


/**
* An annotation providing Gradle 7.x test variants, so this version can be overridden when running on Java versions
* that older Gradle versions do not support.
Expand Down