Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • May 18 17:53

    ysb33r on release

    Use new `mainClass` property in… Merge pull request #428 from do… Describe plugin bundle #386 and 11 more (compare)

  • May 18 17:53
    ysb33r closed #434
  • May 18 17:53
    ysb33r assigned #434
  • May 18 17:53
    ysb33r milestoned #434
  • May 18 15:53
    ysb33r synchronize #434
  • May 18 15:53

    ysb33r on master

    Run windows tests with --info (compare)

  • May 17 07:13
    ysb33r synchronize #434
  • May 17 07:13

    ysb33r on master

    Run windows tests with --info (compare)

  • May 16 19:02
    ysb33r synchronize #434
  • May 16 19:02

    ysb33r on master

    (#433) Workaround windows ADS p… cleanup integration tests (compare)

  • May 16 17:15
    ysb33r synchronize #434
  • May 16 17:15

    ysb33r on master

    Fix codenarc (compare)

  • May 16 17:12
    ysb33r synchronize #434
  • May 16 17:12

    ysb33r on master

    Describe plugin bundle #386 only set pluginBundle for plugi… debug: checking whether secrets… and 4 more (compare)

  • May 16 11:46
    ysb33r opened #434
  • May 15 01:44
    robertpanzer opened #433
  • May 06 09:49
    mkristian commented #428
  • May 06 09:48

    mkristian on master

    Use new `mainClass` property in… Merge pull request #428 from do… (compare)

  • May 06 09:48
    mkristian closed #428
  • May 06 09:48
    mkristian closed #427
Uwe Kubosch
@donv
Hi all!
I just switched from Maven to Gradle in our Spring Boot project, and I use the jruby-gradle-plugin to include the slim gem as a template engine in our Java app.
I have added gems 'rubygems:slim:4.0.1' to our dependencies, and the gems are properly installed in build/.gems.
How do I access the gems from inside the Spring Boot application?
R. Tyler Croy
@rtyler
I'm not sure to be honest, it kind of depends on how you're loading JRuby I suppose
Uwe Kubosch
@donv
I have figured it out. Is this not a common use of jruby-gradle-plugin?
I'd be happy to document our case.
R. Tyler Croy
@rtyler
I'd read that blog post :)
rwygand @rwygand taps the mic
Rob Wygand
@rwygand
Hello, R Tyler Croy. Such a pleasure to meet you
I'm trying to upgrade a project you've totally never heard of @rtyler from jruby-gradle version 1.1.4 to 2.0.0 and I'm seeing a very unexpected error. Thought maybe you'd know what I'm going wrong.
https://gist.github.com/rwygand/734f46e9f06e30b8da45e95f825a32c8 is all I've done, but gradle is coughing up blood
Could not open proj remapped class cache for eubakxxn7gm35h42y5pmndp8u (/Users/rwygand/.gradle/caches/3.5/scripts-remapped/build_56nj46xpan0owpbbzfv6m6sve/eubakxxn7gm35h42y5pmndp8u/projd58e48eb0e2cf8a969ed0648ae8cf5a1).
I've killed the daemon and removed ~/.gradle and then killed the daemon again all for good measure, but... it seems wedged. Curious if you've seen this?
R. Tyler Croy
@rtyler
@rwygand I am not sure if the storm plugin will ever work with 2.0.0, we rewrote a fair bit of stuff to improve things and since I haven't worked on storm in ages, there was never any testing of that
Rob Wygand
@rwygand
Oh you think it may be a bad interaction there? I was sort of hoping to see what exploded to get a sense if I could fork and update the storm plugin
I just didnt' expect that total abject failure mode
Rob Wygand
@rwygand
Thanks!
R. Tyler Croy
@rtyler
Gradle has changed a LOT since that storm plugin was written
R. Tyler Croy
@rtyler
@rwygand is there something specific about the newer versions of jruby-gradle you're trying to adopt?
Schalk W. Cronjé
@ysb33r
I'm prepping a 2.1.0-alpha.1. It's not a functional update, but rather a preparation to deal with configuration cache that was added in Gradle 6.6. This version of jruby-gradle is based upon an alpha version fo grolifant which will deal with a lot of that, but there is also cleanup to be done in the plugin itself. I plan to push as soon as the new grolifant releases get to JCenter.
Schalk W. Cronjé
@ysb33r
@rtyler If yuou want to review jruby-gradle/jruby-gradle-plugin#411
Schalk W. Cronjé
@ysb33r
@rtyler I'm probably going to merge jruby-gradle/jruby-gradle-plugin#413 over the weekend. It is primarily about switching from deprecated Gradle features to the newer equivalents and also about upgrading to grolifant 1.0.0-alpha.4.
R. Tyler Croy
@rtyler
@ysb33r no concerns from me!
Schalk W. Cronjé
@ysb33r
@rtyler I also raised some more issues. I found some code specifically in JRubyJar that will definitely break in Gradle7 or using configuration cache. I'll fix them in the next couple of weeks.
Schalk W. Cronjé
@ysb33r
@rtyler @headius I need to move the plugins from Bintray to the Gradle plugin portal before end of April.
rtyler
@rtyler:matrix.org
[m]
they had emailed me something about that which made it seem like they were going to do it for us (they being gradle)
Boris Petrov
@boris-petrov
@ysb33r - you do have to move it, yes, but I don't think it's until the end of April? That is, Bintray is now read-only and you can't publish new stuff to it, but I think it will be available until next year? Or am I mistaken?
Schalk W. Cronjé
@ysb33r
@rtyler We'll still need to publish after that, so we'll need to set up credentials.
@boris-petrov I don't want to wait until the end of April.
Boris Petrov
@boris-petrov
@ysb33r - yes, I meant that people will still be able to use the plugin from Bintray for one more year. You just won't be able to publish new versions.
Right?
Schalk W. Cronjé
@ysb33r
@boris-petrov One year more? I thought they are going to delete from May 2021.
As far as I understand, the "big problem" is after February 2022.
Until then, artifacts can still be resolved so people will be able to use JRuby/Gradle.
Not sure?
That's how I understand it.
Schalk W. Cronjé
@ysb33r
@boris-petrov I wasn't aware that is would still be downloadable.
@rtyler I checked with Gradle folks. The artifacts are all on the portal now, but we'll need to use your creds to publish with for any new releases. So this means you'll need to go through the process of updating them, then load them as environmental variables into GH so that we can run the release for GH actions.
rtyler
@rtyler:matrix.org
[m]
would you mind filing a ticket and assigning to me @ysb33r so I can remember latter
Schalk W. Cronjé
@ysb33r
@rtyler Sure will do that today
Schalk W. Cronjé
@ysb33r
@rtyler:matrix.org @rtyler It turns out it already existed jruby-gradle/jruby-gradle-plugin#420
rtyler
@rtyler:matrix.org
[m]
hah, okay
Rob Wygand
@rwygand
Hi friends. I'm trying to jump from jruby-gradle 1.2 -> 2.0. I've changed the buildscript dependencies and when I try to do a clean, I get this lovely error. Does anyone have idea what could be the issue? "Could not open proj remapped class cache for 9ixg4997asevp4a7iyrs1rw6k" I've already tried deleting ~/.gradle/caches to see if it was some sort of incompatibility.
sergey-shevtsov
@sergey-shevtsov
Hello colleagues. Can someone help me? I'm trying to add to my project gem 'rubygems:twine:1.1.1', but i am getting an error "Could not find rubygems:twine:1.1.1.", "Possible solution: Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html".
As I understand it, I need to declare the correct repository, but which one?
Schalk W. Cronjé
@ysb33r
@rtyler:matrix.org I am thinking of doing a complete rewrite of the core of jruby plugin in a separate project and then coming back and basing jrubygradle on top of that. In that way I can probably iterate it quicker without carrying the legacy code with it.
Uwe Kubosch
@donv
@sergey-shevtsov It seems the torquebox maven-rubygems proxy is gone. As far a s I can see, that means the jruby-gradle-plugin feature of downloading gems is broken forever. We rewrote our build.gradle script to use bundler to install the gems:
import com.github.jrubygradle.JRubyExec

task installGems(type: JRubyExec, group: 'datek') {
    description "Install gems"
    script "${projectDir}/bin/bundle"
    finalizedBy 'copyGems'
}

task updateGems(type: JRubyExec, group: 'datek') {
    description "Update gems"
    script "${projectDir}/bin/bundle"
    scriptArgs 'update'
    finalizedBy 'cleanGems', 'copyGems'
}

task cleanGems(type: JRubyExec, group: 'datek') {
    description "Clean gems"
    script "${projectDir}/bin/bundle"
    scriptArgs 'clean'
}

task copyGems(type: Sync, group: 'datek') {
    description 'Copies gems from vendor/bundle to src/main/resources'
    mustRunAfter 'cleanGems'
    from "vendor/bundle/jruby/2.6.0/gems"
    include "*/lib/**/*"
    includeEmptyDirs = false
    into("src/main/resources/gems")
    eachFile { fcd -> fcd.relativePath = new RelativePath(true, fcd.relativePath.segments.drop(2)) }
}
tasks.processResources { dependsOn 'installGems' }
Schalk W. Cronjé
@ysb33r
@donv There is a built-in proxy that deals with rubygems directly. You just have to declare it in the repositories.gems { ...} bloxk