diff --git a/build.gradle b/build.gradle index 49c72f90..14277c48 100644 --- a/build.gradle +++ b/build.gradle @@ -104,6 +104,16 @@ publishing { publications { maven(MavenPublication) { from components.java + + pom.withXml { + asNode().dependencies.'*'.findAll() { + it.scope.text() == 'runtime' && project.configurations.implementation.allDependencies.find { dep -> + dep.name == it.artifactId.text() + } + }.each() { + it.scope*.value = 'provided' + } + } } } repositories {