Skip to content

Commit 797a822

Browse files
committed
Pass a GEM_HOME/GEM_PATH environment variable to 'gem install'
1 parent 8547786 commit 797a822

File tree

1 file changed

+4
-2
lines changed
  • jruby-gradle-base-plugin/src/main/groovy/com/github/jrubygradle

1 file changed

+4
-2
lines changed

jruby-gradle-base-plugin/src/main/groovy/com/github/jrubygradle/GemUtils.groovy

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,10 @@ class GemUtils {
9595
// jbundler and/or jar-dependencies will not attempt to invoke
9696
// Maven on a gem's behalf to install a Java dependency that we
9797
// should already have taken care of, see #79
98-
environment 'JBUNDLE_SKIP', true
99-
environment 'JARS_SKIP', true
98+
environment JBUNDLE_SKIP : true,
99+
JARS_SKIP : true,
100+
GEM_HOME : destDir.absolutePath,
101+
GEM_PATH : destDir.absolutePath
100102
main JRUBY_MAINCLASS
101103
classpath jRubyClasspath
102104
args '-S', GEM, 'install'

0 commit comments

Comments
 (0)