From b10aaad31a528e3edb881071a74f0c28268cd6f0 Mon Sep 17 00:00:00 2001 From: Charles Oliver Nutter Date: Thu, 3 Aug 2023 15:28:04 -0500 Subject: [PATCH] Update JRuby and all JRuby/Maven plugins This is part of work to update the entire JRuby/Maven stack, in order to update the version of JRuby used and to address API deprecations at rubygems.org. This PR updates JRuby to latest (9.4.3.0) and moves all plugins to their new org.jruby.maven group ID with latest versions. The maven-tools gem is updated to 1.2. Part of the fix for torquebox/maven-tools#37. We will need to coordinate getting this released along with the maven plugins in the very near term. Because of the rubygems.org API being shut down next week (the 8th), we are under the gun. See jruby/mavengem#9, jruby/jruby-maven-plugins#126, torquebox/maven-tools#38 and jruby/jruby#7872. --- polyglot-ruby/pom.xml | 27 ++++++++++++++----- .../ruby/AbstractInjectedTestCase.java | 2 +- .../src/test/poms/jruby-test-pom.xml | 2 +- 3 files changed, 22 insertions(+), 9 deletions(-) diff --git a/polyglot-ruby/pom.xml b/polyglot-ruby/pom.xml index cc0e0ed7..cbd19a57 100644 --- a/polyglot-ruby/pom.xml +++ b/polyglot-ruby/pom.xml @@ -30,7 +30,7 @@ org.jruby jruby - 9.2.19.0 + 9.4.3.0 pom @@ -43,13 +43,26 @@ - 1.0.3 + 2.0.0-SNAPSHOT + + + + false + + + true + + sonatype + https://oss.sonatype.org/content/repositories/snapshots/ + + + - org.torquebox.mojo + org.jruby.maven mavengem-wagon ${mavengem-wagon.version} @@ -87,7 +100,7 @@ - de.saumya.mojo + org.jruby.maven gem-maven-plugin @@ -138,21 +151,21 @@ rubygems maven-tools - 1.1.7 + 1.2.0.pre1 gem provided - 2.0.1 + 3.0.0-SNAPSHOT - de.saumya.mojo + org.jruby.maven gem-maven-plugin ${jruby.plugins.version} diff --git a/polyglot-ruby/src/test/java/org/sonatype/maven/polyglot/ruby/AbstractInjectedTestCase.java b/polyglot-ruby/src/test/java/org/sonatype/maven/polyglot/ruby/AbstractInjectedTestCase.java index b77a38a6..4b89798d 100644 --- a/polyglot-ruby/src/test/java/org/sonatype/maven/polyglot/ruby/AbstractInjectedTestCase.java +++ b/polyglot-ruby/src/test/java/org/sonatype/maven/polyglot/ruby/AbstractInjectedTestCase.java @@ -199,7 +199,7 @@ private String simplify( StringWriter xml, boolean debug ) // the one from this plugin .replaceAll("[0-9]+(-SNAPSHOT)?", VERSION_PATTERN) // fix absolute path for test_pom_from_jarfile - .replaceAll("..basedir./myfirst.jar", "uri:classloader://myfirst.jar") + .replaceAll("..basedir./myfirst.jar", "uri:classloader:/myfirst.jar") // some of the configuration tags are empty - unify them .replaceAll(">", "/>"); if ( debug ) diff --git a/polyglot-ruby/src/test/poms/jruby-test-pom.xml b/polyglot-ruby/src/test/poms/jruby-test-pom.xml index b2699aea..947b8e76 100644 --- a/polyglot-ruby/src/test/poms/jruby-test-pom.xml +++ b/polyglot-ruby/src/test/poms/jruby-test-pom.xml @@ -157,7 +157,7 @@ test - de.saumya.mojo + org.jruby.maven gem-maven-plugin ${jruby.plugins.version} false