Permalink
Browse files

HHH-8777 corrected configurations used in pom plugin

  • Loading branch information...
1 parent 4fd5bc2 commit 4ef7cd9696d3aa8fa7347943624050341a0e9cd6 @brmeyer brmeyer committed Feb 4, 2014
Showing with 6 additions and 4 deletions.
  1. +6 −4 tooling/hibernate-enhance-maven-plugin/hibernate-enhance-maven-plugin.gradle
@@ -33,10 +33,6 @@ dependencies {
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
// 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.)
@@ -73,6 +69,12 @@ def generateMavenDependency(String gradleDependency) {
task writeNewPom(type:Task, description: 'Writes pom.xml using merged Gradle dependency and MavenPom configuration.') {
ext.pomDefinition = pom {
+ configurations {
+ // avoiding test dependencies in generated pom
+ compile
+ runtime
+ }
+
project {
groupId project.group
packaging 'maven-plugin'

0 comments on commit 4ef7cd9

Please sign in to comment.