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

1st
Dec 2015
Christian Meier
@mkristian
Dec 01 2015 08:14
@ysb33r did you try the jar plugin on ascii-docterj ? I am about to write a wiki on how to pack gems and jars for java application and would like to mention gradle as well.
Christian Meier
@mkristian
Dec 01 2015 08:25
how do I quickly build the plugins without any tests ?
Christian Meier
@mkristian
Dec 01 2015 08:32

how do I build the plugins nowadays ? :jruby-gradle-base-plugin:compileGroovy

FAILURE: Build failed with an exception.

  • What went wrong:
    Cannot infer Groovy class path because no Groovy Jar was found on class path: configuration ':jruby-gradle-base-plugin:compile'

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 1 mins 12.644 secs

it downloads the groovy jar but can not find it later on ?!
Schalk W. Cronjé
@ysb33r
Dec 01 2015 08:44
@mkristian ./gradlew jar
@mkristian Have not finished my work on asciidoctorj yet. I have applied the new base plugin, which works, bit need to see if I can integrate the jar plugin
Christian Meier
@mkristian
Dec 01 2015 09:02
ok. still getting this: Cannot infer Groovy class path because no Groovy Jar was found on class path: configuration ':jruby-gradle-base-plugin:compile'
Schalk W. Cronjé
@ysb33r
Dec 01 2015 09:03
Is this on master or your local branch?
Christian Meier
@mkristian
Dec 01 2015 09:03
both. first I was on branch. then master and I also tried v1.1.5 tag
there is something else screwed up here
Schalk W. Cronjé
@ysb33r
Dec 01 2015 09:06
OK I’ll have a quick check on my tree
mine works
try to do some of the following
./gradlew clean
rm -rf .gradle
./gradlew jar —refresh-dependencies
Christian Meier
@mkristian
Dec 01 2015 09:08
let me give this trial
Schalk W. Cronjé
@ysb33r
Dec 01 2015 09:10
It definitely works with me at the moment
Christian Meier
@mkristian
Dec 01 2015 09:11
if I switch to gradle-2.5 I get an error: Could not find method gradleTestKit() for arguments [] on project ':jruby-gradle-jar-plugin'
Christian Meier
@mkristian
Dec 01 2015 09:18
after deleting ~/.gradle things work again :)
Schalk W. Cronjé
@ysb33r
Dec 01 2015 09:20
Broken global cache? That’s not good.
Going in a meeting now.
Christian Meier
@mkristian
Dec 01 2015 09:21
at least it works again . . .
thanx for your help
rtyler @rtyler waves
Christian Meier
@mkristian
Dec 01 2015 15:26
@rtyler I found a nice bug today :)
or the fix for it
R. Tyler Croy
@rtyler
Dec 01 2015 15:28
I saw
Christian Meier
@mkristian
Dec 01 2015 15:29
still thinking about a testcase for it.
R. Tyler Croy
@rtyler
Dec 01 2015 16:17
ruh roh, master is now broke
I bet it's another connectivity issue in travis
Christian Meier
@mkristian
Dec 01 2015 16:18

and it is hard to see the error as the There were failing tests. See the report at: file:///home/travis/build/jruby-gradle/jruby-gradle-plugin/jruby-gradle-base-plugin/build/reports/tests/index.html

is not accessible

I restarted the failed just before - did not help
R. Tyler Croy
@rtyler
Dec 01 2015 16:21
@mkristian the error is in the console output
Christian Meier
@mkristian
Dec 01 2015 16:22
really - let me find it
R. Tyler Croy
@rtyler
Dec 01 2015 16:22
I've been contemplating just setting up a Jenkins instance for JRuby/Gradle, I feel like Travis is restrictive
16:04:43.994 [Test worker] INFO o.g.i.r.t.http.HttpClientHelper - Failed to get resource: GET. [HTTP HTTP/1.1 500 javax.servlet.http.HttpServletRequest.isAsyncStarted()Z:
looks like it was a 500 trying to fetch jruby-complete from the embedded servlet, I'm going to clear the caches in travis
@mkristian I cleared the caches and restarted the last job
Christian Meier
@mkristian
Dec 01 2015 16:24
I just saw - suddenly the log was gone :)
R. Tyler Croy
@rtyler
Dec 01 2015 16:25
heh, sorry
Christian Meier
@mkristian
Dec 01 2015 16:25
no problem
it was expected