Skip to content

Commit ece6a47

Browse files
authored
Include runtimeOnly dependencies in javadocClasspath. (#2151)
This makes such dependencies' symbols available during javadoc/dokka runs.
1 parent 9c2cc45 commit ece6a47

File tree

1 file changed

+4
-0
lines changed
  • buildSrc/src/main/java/com/google/firebase/gradle/plugins

1 file changed

+4
-0
lines changed

buildSrc/src/main/java/com/google/firebase/gradle/plugins/Dokka.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ static void configure(
6262
.attribute(
6363
BuildTypeAttr.ATTRIBUTE, project.getObjects().named(BuildTypeAttr.class, "release"));
6464
}
65+
Configuration runtimeOnly = project.getConfigurations().findByName("runtimeOnly");
66+
if(runtimeOnly != null) {
67+
javadocClasspath.extendsFrom(runtimeOnly);
68+
}
6569

6670
project.afterEvaluate(
6771
p -> {

0 commit comments

Comments
 (0)