Skip to content

Commit e1663d4

Browse files
committed
apply pom transformation to fix the scope of the compile dependencies
1 parent 3ef9116 commit e1663d4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

build.gradle

+6
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,12 @@ subprojects { subProject ->
125125
rootNode.children().each {
126126
root.append(it)
127127
}
128+
129+
asNode().dependencies.'*'.findAll() {
130+
it.scope.text() == 'runtime' && project.configurations.compile.allDependencies.find { dep ->
131+
dep.name == it.artifactId.text()
132+
}
133+
}.each { it.scope*.value = 'compile'}
128134
}
129135
}
130136
}

0 commit comments

Comments
 (0)