Skip to content

Commit

Permalink
Fix dependency handling for different JPA flavours
Browse files Browse the repository at this point in the history
  • Loading branch information
mgoellnitz committed Feb 24, 2019
1 parent 6df2124 commit 8f4d107
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions jpa/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,12 @@ publishing {
publications {
mavenJava(MavenPublication) {
// remove any dependency for the JPA implementations
def theCopy = pom.runtimeDependencies.clone()
println "removing JPA implementation dependency"
def theCopy = pom.apiDependencies.clone()
theCopy.each {
if (it.groupId.equals('org.apache.openjpa')) {
// println "removing dependency $it.groupId $it.artifactId $it.version"
pom.runtimeDependencies.remove(it)
pom.apiDependencies.remove(it)
}
}

Expand Down

0 comments on commit 8f4d107

Please sign in to comment.