Skip to content

Commit 266b3aa

Browse files
authored
Override RS dependency to compile, replace owner info (ReactiveX#5015)
1 parent dadb49a commit 266b3aa

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

build.gradle

+23
Original file line numberDiff line numberDiff line change
@@ -198,3 +198,26 @@ findbugsMain {
198198
}
199199
}
200200
*/
201+
202+
// from https://discuss.gradle.org/t/maven-publish-plugin-generated-pom-making-dependency-scope-runtime/7494/10
203+
204+
publishing.publications.all {
205+
pom.withXml {
206+
asNode().dependencies.'*'.findAll() {
207+
it.scope.text() == 'runtime' && project.configurations.compile.allDependencies.find { dep ->
208+
dep.name == it.artifactId.text()
209+
}
210+
}.each { it.scope*.value = 'compile'}
211+
212+
asNode().developers.'*'.findAll() {
213+
it.id.text() == 'benjchristensen'
214+
} .each {
215+
it.id*.value = 'akarnokd'
216+
it.name*.value = 'David Karnok'
217+
it.email*.value = '[email protected]'
218+
}
219+
220+
asNode().properties.nebula_Module_Owner*.value = '[email protected]'
221+
asNode().properties.nebula_Module_Email*.value = '[email protected]'
222+
}
223+
}

0 commit comments

Comments
 (0)