jruby-gradle/jruby-gradle-plugin

[2.0.0-alpha2] Cannot install RuboCop

boris-petrov opened this issue · 1 comments

Here is a reproduction. Just run gradle rubocop on that. It fails with:

Building native extensions. This could take a while...
ERROR:  Error installing /home/boris/.gradle/caches/modules-2/files-2.1/rubygems/jaro_winkler/1.5.4/8eff0f298603027ff657de5ff3c6ef74dac71bd0/jaro_winkler-1.5.4.gem:
	ERROR: Failed to build gem native extension.

    current directory: /home/boris/jruby-gradle-bug/build/.gems-rubocop/gems/jaro_winkler-1.5.4/ext/jaro_winkler
/usr/lib/jvm/java-13-openjdk/bin/java -cp :/home/boris/.gradle/caches/modules-2/files-2.1/org.jruby/jruby-complete/9.2.9.0/8e44ce7a1417966d89957bd766a148601e28828b/jruby-complete-9.2.9.0.jar org.jruby.Main -r ./siteconf20191220-160682-1jwcmss.rb extconf.rb
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.headius.backport9.modules.Modules (file:/home/boris/.gradle/caches/modules-2/files-2.1/org.jruby/jruby-complete/9.2.9.0/8e44ce7a1417966d89957bd766a148601e28828b/jruby-complete-9.2.9.0.jar) to method sun.nio.ch.NativeThread.signal(long)
WARNING: Please consider reporting this to the maintainers of com.headius.backport9.modules.Modules
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
creating Makefile

current directory: /home/boris/jruby-gradle-bug/build/.gems-rubocop/gems/jaro_winkler-1.5.4/ext/jaro_winkler
make "DESTDIR=" clean
Makefile:225: *** multiple target patterns.  Stop.

current directory: /home/boris/jruby-gradle-bug/build/.gems-rubocop/gems/jaro_winkler-1.5.4/ext/jaro_winkler
make "DESTDIR="
Makefile:225: *** multiple target patterns.  Stop.

make failed, exit code 2

I think this is because JRuby/Gradle is not installing the java version of the jaro_winkler gem for some reason but the "normal" one.

This didn't happen when using 1.7.0.

In 2.0.0-alpha.3