Skip to content

Commit

Permalink
Fixed issue where license was always MIT in the generated POM by foll…
Browse files Browse the repository at this point in the history
…owing the instructions here mockito/shipkit#755.
  • Loading branch information
jverbus committed Aug 13, 2019
1 parent 8523d70 commit bd7e148
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions gradle/shipkit.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,19 @@ allprojects {
}
}
}

plugins.withId("org.shipkit.java-publish") {
publishing.publications.javaLibrary.pom.withXml {
//refer to Groovy xml Node reference for more info how to manipulate xml
asNode().licenses.replaceNode {
licenses {
license {
name "BSD 2-CLAUSE"
url "https://github.com/linkedin/isolation-forest/blob/master/LICENSE"
distribution "repo"
}
}
}
}
}
}

0 comments on commit bd7e148

Please sign in to comment.