Skip to content

Commit f5e51ae

Browse files
committed
Workaround for bug in jruby 1.7.14
1 parent b91ab75 commit f5e51ae

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/main/groovy/com/github/jrubygradle/GemUtils.groovy

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ class GemUtils {
7777

7878
project.logger.info "Installing " + (gemsToProcess.collect { File it -> it.name }).join(',')
7979

80+
81+
8082
project.javaexec {
8183
setEnvironment [:]
8284
main 'org.jruby.Main'
@@ -86,6 +88,12 @@ class GemUtils {
8688
args gem
8789
}
8890
args '--ignore-dependencies', "--install-dir=${destDir.absolutePath}", '-N'
91+
92+
// Workaround for bug
93+
if(jRubyClasspath.name.contains('1.7.14')) {
94+
project.logger.debug "Gem installation: Working around bug in jruby 1.7.14"
95+
environment HOME : project.gradle.gradleUserHomeDir.absolutePath
96+
}
8997
}
9098
}
9199
}

src/main/groovy/com/github/jrubygradle/JRubyPluginExtension.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class JRubyPluginExtension {
77
/** The default version of jruby that will be used by jrubyWar
88
*
99
*/
10-
String defaultVersion = '1.7.13'
10+
String defaultVersion = '1.7.14'
1111

1212
/** Directory for jrubyPrepare to install .gem dependencies into
1313
*

0 commit comments

Comments
 (0)