HHH-8220 - pom dependencies scope changed from compile to runtime

This commit is contained in:
Steve Ebersole 2013-05-07 08:02:00 -05:00
parent 7004914ec0
commit 2bc63badea
1 changed files with 10 additions and 0 deletions

View File

@ -430,6 +430,16 @@ subprojects { subProject ->
dev.appendNode( 'name', 'The Hibernate Development Team' )
dev.appendNode( 'organization', 'Hibernate.org' )
dev.appendNode( 'organizationUrl', 'http://hibernate.org' )
final String runtimeScope = '<scope>runtime</scope>';
final int replacementLength = runtimeScope.length();
final String compileScope = '<scope>compile</scope>';
final StringBuilder stringBuilder = asString();
int index = stringBuilder.indexOf( runtimeScope );
while ( index > -1 ) {
stringBuilder.replace( index, index+replacementLength, compileScope );
index = stringBuilder.indexOf( runtimeScope );
}
}
}
}