From 2bc63badead578f90bcc269c9b56a25ab983f80b Mon Sep 17 00:00:00 2001 From: Steve Ebersole Date: Tue, 7 May 2013 08:02:00 -0500 Subject: [PATCH] HHH-8220 - pom dependencies scope changed from compile to runtime --- build.gradle | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/build.gradle b/build.gradle index 72ab09a538..88203944a1 100644 --- a/build.gradle +++ b/build.gradle @@ -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 = 'runtime'; + final int replacementLength = runtimeScope.length(); + final String compileScope = 'compile'; + final StringBuilder stringBuilder = asString(); + int index = stringBuilder.indexOf( runtimeScope ); + while ( index > -1 ) { + stringBuilder.replace( index, index+replacementLength, compileScope ); + index = stringBuilder.indexOf( runtimeScope ); + } } } }