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:
R. Tyler Croy 2015-09-11 08:55:30 -07:00
parent ecc92d61a0
commit 16a7f0886b
No known key found for this signature in database
GPG Key ID: 1426C7DC3F51E16F
1 changed files with 4 additions and 7 deletions

View File

@ -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