diff --git a/RSyntaxTextAreaAntlrSupport/build.gradle b/RSyntaxTextAreaAntlrSupport/build.gradle index c90e64369..97299a029 100755 --- a/RSyntaxTextAreaAntlrSupport/build.gradle +++ b/RSyntaxTextAreaAntlrSupport/build.gradle @@ -127,6 +127,14 @@ publishing { } } } + pom.withXml { + Node pomNode = asNode() + pomNode.dependencies.'*'.findAll() { + it.artifactId.text() == 'antlr4' + }.each() { + it.parent().remove(it) + } + } } } }