Skip to content

SONARRUBY-129 Get rid of jruby gradle plugin#109

Merged
rombirli merged 4 commits intomasterfrom
rombirli/get-rid-jruby-gradle-plugin
Mar 13, 2026
Merged

SONARRUBY-129 Get rid of jruby gradle plugin#109
rombirli merged 4 commits intomasterfrom
rombirli/get-rid-jruby-gradle-plugin

Conversation

@rombirli
Copy link
Contributor

@rombirli rombirli commented Mar 11, 2026

This PR is split into 3 commits:

  1. Replace JRuby plugin gem unpacking with native Gradle tasks

    • removes the legacy JRuby Gradle plugin usage from sonar-ruby-plugin
    • replaces it with native Gradle tasks to download and unpack the bundled gems
    • fixes the unpacking layout so each gem is extracted into a stable directory expected by the plugin resources
  2. Load bundled parser gems via classloader URIs

    • updates RubyConverter to initialize JRuby from uri:classloader: load paths
    • aligns runtime gem loading with the new packaged resource layout inside the plugin artifact
  3. Explode shadowBugWorkaround.jar in the final plugin artifact

    • keeps the Shadow workaround jar as an intermediate packaging mechanism only
    • expands it during final assembly so the plugin artifact keeps the exact same structure as before

@hashicorp-vault-sonar-prod
Copy link

hashicorp-vault-sonar-prod bot commented Mar 11, 2026

SONARRUBY-129

@rombirli rombirli removed the request for review from dorian-burihabwa-sonarsource March 11, 2026 14:50
@rombirli rombirli force-pushed the rombirli/get-rid-jruby-gradle-plugin branch from 4ece07f to f463956 Compare March 11, 2026 15:52
@rombirli rombirli changed the title SONARRUBY-129 Get rid jruby gradle plugin SONARRUBY-129 Get rid of jruby gradle plugin Mar 11, 2026
@rombirli rombirli force-pushed the rombirli/get-rid-jruby-gradle-plugin branch from f463956 to 7b23863 Compare March 11, 2026 16:09
@rombirli rombirli marked this pull request as ready for review March 11, 2026 16:20
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the clean up work on the PR and commits. I think we could still update the old around the explicit inclusion of the parser gems

Comment on lines 26 to 32
@@ -53,9 +30,9 @@ dependencies {
// http://rubygems-proxy.torquebox.org/releases/rubygems/racc/1.5.2/racc-1.5.2-java.pom
// But "rubygems-proxy.torquebox.org" server does not exist anymore.
// The bellow function "downloadFromRubygems" is a workaround to this problem

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should delete or update these lines as we are keeping the behavior despite dropping the pluign

@rombirli rombirli force-pushed the rombirli/get-rid-jruby-gradle-plugin branch from 7b23863 to e2f19b5 Compare March 12, 2026 07:32
@sonarqube-next
Copy link

@rombirli rombirli merged commit 05b4dc9 into master Mar 13, 2026
6 checks passed
@rombirli rombirli deleted the rombirli/get-rid-jruby-gradle-plugin branch March 13, 2026 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants