These are chat archives for jruby-gradle/jruby-gradle-plugin

13th
May 2019
R. Tyler Croy
@rtyler
May 13 16:22
@ysb33r when you're around, can we configure gradleTest {} to only run in the JDK8 branch for now?
Schalk W. Cronjé
@ysb33r
May 13 16:23
Right, not a big issue that. JDK11 needs Gradle 4.8 I think.
However I am going to give you a little code snippet to use.
            gradleTest {
                if (JavaVersion.current().java12) {
                    versions '5.4'
                }  else if (JavaVersion.current().java11) {
                    versions '4.8.1', '5.0', '5.1.1', '5.4'
                } else if (JavaVersion.current().java10) {
                    versions '4.7', '5.0', '5.1.1'
                } else {
                    versions '4.0.2', '5.0', '5.1.1', '5.4'
                }
            }
You can adapt from here. Since you are already on the code face it will be easier if you make the change.
That comes from the Asciidoctor Gradle project.
R. Tyler Croy
@rtyler
May 13 16:26
Gradle claims 5.0 is the first release to really support it
Schalk W. Cronjé
@ysb33r
May 13 16:26
We haven;t had issue, but you can simple start the JDK11 at Gradle 5.0 if you wish.
R. Tyler Croy
@rtyler
May 13 16:27
taking a crack at it with this snippet
Charles Oliver Nutter
@headius
May 13 17:06
@rtyler So there was some bad gem out there messing up the install process?
R. Tyler Croy
@rtyler
May 13 17:21
@headius referring to what?
@headius the selenium-web-driver gem issue was due to our install of gems being done in the order we saw them, rather than in a dependent-order, and that gem in particular depends on rake at install time
Charles Oliver Nutter
@headius
May 13 18:21
@rtyler oh ok I see now
Schalk W. Cronjé
@ysb33r
May 13 18:21
@headius Yes. The final issue was a fake gem being too much of a fake :laughing: We got away with it on older versions of JRuby.
R. Tyler Croy
@rtyler
May 13 18:39
oh yeah, that part of the issue was a fun find
Charles Oliver Nutter
@headius
May 13 19:27
oh that's what I saw above then