HHH-8220 - pom dependencies scope changed from compile to runtime
This commit is contained in:
parent
7004914ec0
commit
2bc63badea
10
build.gradle
10
build.gradle
|
@ -430,6 +430,16 @@ subprojects { subProject ->
|
||||||
dev.appendNode( 'name', 'The Hibernate Development Team' )
|
dev.appendNode( 'name', 'The Hibernate Development Team' )
|
||||||
dev.appendNode( 'organization', 'Hibernate.org' )
|
dev.appendNode( 'organization', 'Hibernate.org' )
|
||||||
dev.appendNode( 'organizationUrl', 'http://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 );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue