HHH-8777 corrected configurations used in pom plugin

This commit is contained in:
Brett Meyer 2014-02-04 12:30:53 -05:00
parent 4fd5bc25b9
commit 4ef7cd9696
1 changed files with 6 additions and 4 deletions

View File

@ -33,10 +33,6 @@ dependencies {
runtime 'org.codehaus.plexus:plexus-utils:3.0.1' runtime 'org.codehaus.plexus:plexus-utils:3.0.1'
} }
// avoiding test dependencies in generated pom
configurations.remove(configurations.getByName('testCompile'))
configurations.remove(configurations.getByName('testRuntime'))
// Inject dependencies into plugin.xml // Inject dependencies into plugin.xml
// Note: injecting the full dependency, rather than just the version, // Note: injecting the full dependency, rather than just the version,
// removing the need to maintain artifact names that might change with upgrades (JPA/JTA API version, etc.) // removing the need to maintain artifact names that might change with upgrades (JPA/JTA API version, etc.)
@ -73,6 +69,12 @@ def generateMavenDependency(String gradleDependency) {
task writeNewPom(type:Task, description: 'Writes pom.xml using merged Gradle dependency and MavenPom configuration.') { task writeNewPom(type:Task, description: 'Writes pom.xml using merged Gradle dependency and MavenPom configuration.') {
ext.pomDefinition = pom { ext.pomDefinition = pom {
configurations {
// avoiding test dependencies in generated pom
compile
runtime
}
project { project {
groupId project.group groupId project.group
packaging 'maven-plugin' packaging 'maven-plugin'