Skip to content

Commit

Permalink
Exclude Kotlin Stdlib dependency from published pom.xml (#349)
Browse files Browse the repository at this point in the history
  • Loading branch information
httpdigest committed Jul 12, 2024
1 parent ddd6736 commit 9c6fcd4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,16 @@ publishing {
developerConnection = 'scm:git:https://github.com/JOML-CI/JOML.git'
}
}
// Exclude the dependency on the Kotlin Stdlib for Java
// introduced by the Kotlin plugin.
pom.withXml {
Node pomNode = asNode()
pomNode.dependencies.'*'.findAll() {
it.artifactId.text() == 'kotlin-stdlib-jdk8'
}.each() {
it.parent().remove(it)
}
}
}
}
}
Expand Down

0 comments on commit 9c6fcd4

Please sign in to comment.