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 ); + } } } }