Skip to content

Commit 413cd8a

Browse files
committed
Include runtimeOnly dependencies in generated POMs, too
This fixes a mistake in Instrumentation Core 1.2.1, which is missing two dependencies that are essential at runtime to make the whole thing work. The deployment script only cared about the implementation configuration when it built the POM file for each module. Make it care about runtimeOnly as well. (Note: compileOnly is fine to be skipped, since those dependencies are meant to not be available at runtime)
1 parent 917de51 commit 413cd8a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

deployment.gradle

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,10 @@ publishing {
8383
// Include transitive dependencies
8484
withXml {
8585
def dependenciesNode = asNode().appendNode("dependencies")
86-
project.configurations.implementation
87-
.allDependencies
86+
def dependencies = project.configurations.implementation.allDependencies +
87+
project.configurations.runtimeOnly.allDependencies
88+
89+
dependencies
8890
.findAll { it.name != "unspecified" }
8991
.each {
9092
def dependencyNode = dependenciesNode.appendNode("dependency")

0 commit comments

Comments
 (0)