Skip to content

Commit

Permalink
Update jruby-maven-plugins to new group and version
Browse files Browse the repository at this point in the history
This update is necessary to get JRuby 9.4.3.0 running throughout
the JRuby/Maven stack, which is necessary to move to the new
mavengems.

See jruby/jruby-maven-plugins#126

See jruby/mavengem#9
  • Loading branch information
headius committed Aug 3, 2023
1 parent df8cb6d commit 5c31139
Show file tree
Hide file tree
Showing 27 changed files with 35 additions and 41 deletions.
2 changes: 1 addition & 1 deletion lib/pom.rb
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def log(message=nil)

properties( 'polyglot.dump.pom' => 'pom.xml',
'polyglot.dump.readonly' => true,
'jruby.plugins.version' => '1.1.2',
'jruby.plugins.version' => '3.0.0-SNAPSHOT',
'gem.home' => '${basedir}/ruby/gems/shared',
# we copy everything into the target/classes/META-INF
# so the jar plugin just packs it - see build/resources below
Expand Down
2 changes: 1 addition & 1 deletion lib/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ DO NOT MODIFY - GENERATED CODE
<gem.home>${basedir}/ruby/gems/shared</gem.home>
<jruby.complete.gems>${jruby.complete.home}/lib/ruby/gems/shared</jruby.complete.gems>
<jruby.complete.home>${project.build.outputDirectory}/META-INF/jruby.home</jruby.complete.home>
<jruby.plugins.version>1.1.2</jruby.plugins.version>
<jruby.plugins.version>3.0.0-SNAPSHOT</jruby.plugins.version>
<polyglot.dump.pom>pom.xml</polyglot.dump.pom>
<polyglot.dump.readonly>true</polyglot.dump.readonly>
</properties>
Expand Down
8 changes: 4 additions & 4 deletions lifecycle-mapping-metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>de.saumya.mojo</groupId>
<groupId>org.jruby.maven</groupId>
<artifactId>gem-maven-plugin</artifactId>
<versionRange>1.0.0-rc</versionRange>
<versionRange>3.0.0-SNAPSHOT</versionRange>
<goals>
<goal>initialize</goal>
</goals>
Expand All @@ -42,9 +42,9 @@
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>de.saumya.mojo</groupId>
<groupId>org.jruby.maven</groupId>
<artifactId>gem-maven-plugin</artifactId>
<versionRange>1.0.0-rc2</versionRange>
<versionRange>3.0.0-SNAPSHOT</versionRange>
<goals>
<goal>initialize</goal>
</goals>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<extension>
<groupId>org.jruby.maven</groupId>
<artifactId>mavengem-wagon</artifactId>
<version>1.0.3</version>
<version>2.0.0-SNAPSHOT</version>
</extension>
</extensions>
<plugins>
Expand Down
2 changes: 1 addition & 1 deletion maven/jruby-complete/src/it/extended/Mavenfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#-*- mode: ruby -*-

# default versions will be overwritten by pom.rb from root directory
properties( 'jruby.plugins.version' => '1.0.10',
properties( 'jruby.plugins.version' => '3.0.0-SNAPSHOT',
'project.build.sourceEncoding' => 'utf-8',
'jruby.home' => '${basedir}/../../../../..' )

Expand Down
6 changes: 3 additions & 3 deletions maven/jruby-complete/src/it/runnable/Mavenfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#-*- mode: ruby -*-

# default versions will be overwritten by pom.rb from root directory
properties( 'jruby.plugins.version' => '1.0.10',
'mavengem.wagon.version' => '1.0.3',
'jruby.version' => '9.0.5.0' )
properties( 'jruby.plugins.version' => '3.0.0-SNAPSHOT',
'mavengem.wagon.version' => '2.0.0-SNAPSHOT',
'jruby.version' => '9.4.3.0' )

gemfile

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
packaging 'bundle'

# default versions will be overwritten by pom.rb from root directory
properties( 'jruby.plugins.version' => '1.0.10',
properties( 'jruby.plugins.version' => '3.0.0-SNAPSHOT',
# needed bundle plugin
'polyglot.dump.pom' => 'pom.xml' )

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
packaging :pom

# default versions will be overwritten by pom.rb from root directory
properties( 'jruby.plugins.version' => '1.0.10',
properties( 'jruby.plugins.version' => '3.0.0-SNAPSHOT',
'project.build.sourceEncoding' => 'utf-8' )

modules [ 'gems-bundle', 'scripts-bundle', 'test' ]
2 changes: 1 addition & 1 deletion maven/jruby-jars/Mavenfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ end

properties( 'tesla.dump.pom' => 'pom.xml',
'tesla.dump.readonly' => true,
'jruby.plugins.version' => '1.1.8',
'jruby.plugins.version' => '3.0.0-SNAPSHOT',
# we share the already installed gems
'gem.home' => '${jruby_home}/lib/ruby/gems/shared',
# need jruby_home but not jruby.home as name otherwise
Expand Down
7 changes: 2 additions & 5 deletions maven/jruby-jars/src/it/integrity/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,14 @@
<build>
<plugins>
<plugin>
<groupId>de.saumya.mojo</groupId>
<groupId>org.jruby.maven</groupId>
<artifactId>gem-maven-plugin</artifactId>
<version>1.0.5</version>
<version>3.0.0-SNAPSHOT</version>
<executions>
<execution>
<goals><goal>initialize</goal></goals>
</execution>
</executions>
<configuration>
<jrubyVersion>1.7.22</jrubyVersion>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
Expand Down
2 changes: 1 addition & 1 deletion maven/jruby/src/it/j2ee_jetty/pom.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
packaging 'war'

# default versions will be overwritten by pom.rb from root directory
properties( 'jruby.plugins.version' => '1.0.10',
properties( 'jruby.plugins.version' => '3.0.0-SNAPSHOT',
'project.build.sourceEncoding' => 'utf-8' )

pom( 'org.jruby:jruby', '${jruby.version}' )
Expand Down
2 changes: 1 addition & 1 deletion maven/jruby/src/it/j2ee_jetty_rack/Mavenfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
packaging 'war'

# get jruby dependencies
properties( 'jruby.plugins.version' => '1.0.10',
properties( 'jruby.plugins.version' => '3.0.0-SNAPSHOT',
'project.build.sourceEncoding' => 'utf-8',
'public.dir' => '${basedir}/public' )

Expand Down
2 changes: 1 addition & 1 deletion maven/jruby/src/it/j2ee_tomcat/pom.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
packaging 'war'

# default versions will be overwritten by pom.rb from root directory
properties( 'jruby.plugins.version' => '1.0.10',
properties( 'jruby.plugins.version' => '3.0.0-SNAPSHOT',
'project.build.sourceEncoding' => 'utf-8' )

pom( 'org.jruby:jruby', '${jruby.version}' )
Expand Down
2 changes: 1 addition & 1 deletion maven/jruby/src/it/j2ee_tomcat_rack/Mavenfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
packaging 'war'

# get jruby dependencies
properties( 'jruby.plugins.version' => '1.0.10',
properties( 'jruby.plugins.version' => '3.0.0-SNAPSHOT',
'project.build.sourceEncoding' => 'utf-8',
'public.dir' => '${basedir}/public' )

Expand Down
2 changes: 1 addition & 1 deletion maven/jruby/src/it/j2ee_wildfly/pom.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
packaging 'war'

# default versions will be overwritten by pom.rb from root directory
properties( 'jruby.plugins.version' => '1.0.10',
properties( 'jruby.plugins.version' => '3.0.0-SNAPSHOT',
'wildfly.version' => '9.0.2.Final',
'project.build.sourceEncoding' => 'utf-8' )

Expand Down
2 changes: 1 addition & 1 deletion maven/jruby/src/it/jetty/Mavenfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
packaging 'war'

# default versions will be overwritten by pom.rb from root directory
properties( 'jruby.plugins.version' => '1.0.10',
properties( 'jruby.plugins.version' => '3.0.0-SNAPSHOT',
'project.build.sourceEncoding' => 'utf-8',
'public.dir' => '${basedir}/public' )

Expand Down
2 changes: 1 addition & 1 deletion maven/jruby/src/it/many_jars_with_embedded_gems/app/pom.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# two jars with embedded gems
jar 'de.saumya.mojo:maven-tools', '1.0.0.rc1'
jar 'org.jruby.maven:maven-tools', '3.0.0-SNAPSHOT'
jar 'org.rubygems:zip', '2.0.2'

# jruby scripting container
Expand Down
2 changes: 1 addition & 1 deletion maven/jruby/src/it/many_jars_with_embedded_gems/pom.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#-*- mode: ruby -*-

# default versions will be overwritten by pom.rb from root directory
properties( 'jruby.plugins.version' => '1.0.10' )
properties( 'jruby.plugins.version' => '3.0.0-SNAPSHOT' )

packaging :pom

Expand Down
2 changes: 1 addition & 1 deletion maven/jruby/src/it/many_jars_with_embedded_gems_ng/pom.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#-*- mode: ruby -*-

# default versions will be overwritten by pom.rb from root directory
properties( 'jruby.plugins.version' => '1.0.10' )
properties( 'jruby.plugins.version' => '3.0.0-SNAPSHOT' )

packaging :pom

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
</repositories>

<properties>
<jruby.plugins.version>1.0.10</jruby.plugins.version>
<jruby.plugins.version>>3.0.0-SNAPSHOT</jruby.plugins.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

Expand All @@ -42,22 +42,19 @@
<extension>
<groupId>org.jruby.maven</groupId>
<artifactId>mavengem-wagon</artifactId>
<version>1.0.3</version>
<version>2.0.0-SNAPSHOT</version>
</extension>
</extensions>
<plugins>
<plugin>
<groupId>de.saumya.mojo</groupId>
<groupId>org.jruby.maven</groupId>
<artifactId>gem-maven-plugin</artifactId>
<version>${jruby.plugins.version}</version>
<executions>
<execution>
<goals><goal>initialize</goal></goals>
</execution>
</executions>
<configuration>
<jrubyVersion>1.7.22</jrubyVersion>
</configuration>
</plugin>
</plugins>
</build>
Expand Down
2 changes: 1 addition & 1 deletion maven/jruby/src/it/tomcat/pom.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
packaging 'war'

# default versions will be overwritten by pom.rb from root directory
properties( 'jruby.plugins.version' => '1.0.10',
properties( 'jruby.plugins.version' => '3.0.0-SNAPSHOT',
'project.build.sourceEncoding' => 'utf-8' )

pom( 'org.jruby:jruby', '${jruby.version}' )
Expand Down
2 changes: 1 addition & 1 deletion maven/jruby/src/templates/hellowarld/Mavenfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ packaging 'pom'
# TODO add extension to .mvn/extensions.xml
extension 'de.saumya.mojo', 'jruby9-extensions', '${jruby9.plugins.version}'

properties( 'jruby.plugins.version' => '1.1.0',
properties( 'jruby.plugins.version' => '3.0.0-SNAPSHOT',
'jruby9.plugins.version' => '0.2.0' )

# integration tests
Expand Down
2 changes: 1 addition & 1 deletion maven/jruby/src/templates/j2ee_wlp/pom.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
packaging 'war'

# default versions will be overwritten by pom.rb from root directory
properties( 'jruby.plugins.version' => '1.0.10',
properties( 'jruby.plugins.version' => '3.0.0-SNAPSHOT',
'project.build.sourceEncoding' => 'utf-8' )

pom( 'org.jruby:jruby', '${jruby.version}' )
Expand Down
2 changes: 1 addition & 1 deletion maven/jruby/src/templates/osgi_all_inclusive/pom.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
packaging 'bundle'

# default versions will be overwritten by pom.rb from root directory
properties( 'jruby.plugins.version' => '1.0.10',
properties( 'jruby.plugins.version' => '3.0.0-SNAPSHOT',
'exam.version' => '3.0.3',
'url.version' => '1.5.2',
'logback.version' => '1.0.13',
Expand Down
2 changes: 1 addition & 1 deletion pom.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
'github.global.server' => 'github',
'polyglot.dump.pom' => 'pom.xml',
'polyglot.dump.readonly' => 'true',
'jruby.plugins.version' => '1.0.10',
'jruby.plugins.version' => '3.0.0-SNAPSHOT',

# versions for default gems with bin executables
# used in ./lib/pom.rb and ./maven/jruby-stdlib/pom.rb
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ DO NOT MODIFY - GENERATED CODE
<joda.time.version>2.12.5</joda.time.version>
<jruby-launcher.version>1.1.6</jruby-launcher.version>
<jruby.basedir>${project.basedir}</jruby.basedir>
<jruby.plugins.version>1.0.10</jruby.plugins.version>
<jruby.plugins.version>3.0.0-SNAPSHOT</jruby.plugins.version>
<main.basedir>${project.basedir}</main.basedir>
<polyglot.dump.pom>pom.xml</polyglot.dump.pom>
<polyglot.dump.readonly>true</polyglot.dump.readonly>
Expand Down
2 changes: 1 addition & 1 deletion test/pom.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
plugin( 'org.eclipse.m2e:lifecycle-mapping:1.0.0',
'lifecycleMappingMetadata' => {
'pluginExecutions' => [ { 'pluginExecutionFilter' => {
'groupId' => 'de.saumya.mojo',
'groupId' => 'org.jruby.maven',
'artifactId' => 'gem-maven-plugin',
'versionRange' => '[1.0.0-rc3,)',
'goals' => [ 'initialize' ]
Expand Down

0 comments on commit 5c31139

Please sign in to comment.