Work-around Gradle 2.2 super() issue by not calling super at all
According to @ysb33r: Gradle 2.2 is indeed the culprit. There was binary change in the Jar class when they moved it from a Groovy implementation to a Java one. It was corrected in a subequent release, but 2.2 remains an issue. Gradle 2.2 was just a bad release :( Fixes #26
This commit is contained in:
parent
ecc92d61a0
commit
16a7f0886b
|
@ -21,14 +21,11 @@ class JRubyStormJar extends JRubyJar {
|
|||
*/
|
||||
@Override
|
||||
String getJrubyVersion() {
|
||||
final String inheritedVersion = super.getJrubyVersion()
|
||||
|
||||
/* if our parent has a default version that's 1.7.x, use it */
|
||||
if (inheritedVersion.matches(/1.7.(\d+)/)) {
|
||||
return inheritedVersion
|
||||
if (embeddedJRubyVersion == null) {
|
||||
/* Default to 1.7.22 <https://github.com/jruby-gradle/redstorm/issues/11> */
|
||||
return '1.7.22'
|
||||
}
|
||||
/* Default to 1.7.22 <https://github.com/jruby-gradle/redstorm/issues/11> */
|
||||
return '1.7.22'
|
||||
return embeddedJRubyVersion
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue