Skip to content

Commit

Permalink
Update polyglot-maven to a prerelease build
Browse files Browse the repository at this point in the history
This commit also pulls in the jruby-maven-plugins update to 3.0
for integration tests that were still using the old artifacts.
  • Loading branch information
headius committed Aug 4, 2023
1 parent 337ac4a commit bb778b4
Show file tree
Hide file tree
Showing 18 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .mvn/extensions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
<extension>
<groupId>io.takari.polyglot</groupId>
<artifactId>polyglot-ruby</artifactId>
<version>0.4.7</version>
<version>0.4.11-SNAPSHOT</version>
</extension>
</extensions>
2 changes: 1 addition & 1 deletion lib/pom.rb
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def log(message=nil)
ghome = default_gemnames.member?( a.artifact_id ) ? gem_home : jruby_gems
if Dir[ File.join( ghome, 'cache', File.basename( a.file.to_pathname ).sub( /.gem/, '*.gem' ) ) ].empty?
log a.file.to_pathname
installer = Gem::Installer.new( a.file.to_pathname,
installer = Gem::Installer.new( Gem::Package.new(a.file.to_pathname),
wrappers: true,
ignore_dependencies: true,
install_dir: ghome,
Expand Down
4 changes: 2 additions & 2 deletions lib/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1365,7 +1365,7 @@ DO NOT MODIFY - GENERATED CODE
<plugin>
<groupId>io.takari.polyglot</groupId>
<artifactId>polyglot-maven-plugin</artifactId>
<version>0.4.7</version>
<version>0.4.11-SNAPSHOT</version>
<executions>
<execution>
<id>install_gems</id>
Expand Down Expand Up @@ -1416,7 +1416,7 @@ DO NOT MODIFY - GENERATED CODE
<dependency>
<groupId>io.takari.polyglot</groupId>
<artifactId>polyglot-ruby</artifactId>
<version>0.4.7</version>
<version>0.4.11-SNAPSHOT</version>
</dependency>
</dependencies>
<inherited>false</inherited>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# needed bundle plugin
'polyglot.dump.pom' => 'pom.xml' )

plugin! 'org.jruby.maven:gem-maven-plugin:${jruby.plugins.version}', :includeRubygemsInResources => true, :jrubyVersion => '9.0.0.0'
jruby_plugin! :gem, :includeRubygemsInResources => true, :jrubyVersion => '9.0.0.0'

plugin( 'org.apache.felix:maven-bundle-plugin', '2.4.0',
:instructions => {
Expand Down
2 changes: 1 addition & 1 deletion maven/jruby-jars/Mavenfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ end
# do not push the gem during deploy phase
# the bang reuses the plugin declaration which is already in place and
# adds the extra execute_goal to it
plugin!('org.jruby.maven:gem-maven-plugin:${jruby.plugins.version}',
jruby_plugin!( :gem,
:gemspec => 'jruby-jars.gemspec',
# tell maven to include the jar files into gem
:includeDependencies => true,
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 @@ -13,7 +13,7 @@
extension 'org.jruby.maven:mavengem-wagon:2.0.0-SNAPSHOT'
repository :id => :mavengems, :url => 'mavengem:https://rubygems.org'

plugin 'org.jruby.maven:gem-maven-plugin:${jruby.plugins.version}', :includeRubygemsInResources => true, :jrubyVersion => '9.0.0.0' do
jruby_plugin :gem, :includeRubygemsInResources => true, :jrubyVersion => '9.0.0.0' do
execute_goal :initialize
end

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 @@ -19,7 +19,7 @@ gem 'flickraw', '0.9.7'
extension 'org.jruby.maven:mavengem-wagon:2.0.0-SNAPSHOT'
repository :id => :mavengems, :url => 'mavengem:https://rubygems.org'

plugin 'org.jruby.maven:gem-maven-plugin:${jruby.plugins.version}', :includeRubygemsInResources => true, :includeLibDirectoryInResources => true, :jrubyVersion => '9.0.0.0' do
jruby_plugin :gem, :includeRubygemsInResources => true, :includeLibDirectoryInResources => true, :jrubyVersion => '9.0.0.0' do
execute_goal :initialize
end

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 @@ -13,7 +13,7 @@
extension 'org.jruby.maven:mavengem-wagon:2.0.0-SNAPSHOT'
repository :id => :mavengems, :url => 'mavengem:https://rubygems.org'

plugin 'org.jruby.maven:gem-maven-plugin:${jruby.plugins.version}', :includeRubygemsInResources => true, :jrubyVersion => '9.0.0.0' do
jruby_plugin :gem, :includeRubygemsInResources => true, :jrubyVersion => '9.0.0.0' do
execute_goal :initialize
end

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 @@ -19,7 +19,7 @@ gem 'flickraw', '0.9.7'
extension 'org.jruby.maven:mavengem-wagon:2.0.0-SNAPSHOT'
repository :id => :mavengems, :url => 'mavengem:https://rubygems.org'

plugin 'org.jruby.maven:gem-maven-plugin:${jruby.plugins.version}', :includeRubygemsInResources => true, :includeLibDirectoryInResources => true, :jrubyVersion => '9.0.0.0' do
jruby_plugin :gem, :includeRubygemsInResources => true, :includeLibDirectoryInResources => true, :jrubyVersion => '9.0.0.0' do
execute_goal :initialize
end

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 @@ -14,7 +14,7 @@
extension 'org.jruby.maven:mavengem-wagon:2.0.0-SNAPSHOT'
repository :id => :mavengems, :url => 'mavengem:https://rubygems.org'

plugin 'org.jruby.maven:gem-maven-plugin:${jruby.plugins.version}', :includeRubygemsInResources => true, :jrubyVersion => '9.0.0.0' do
jruby_plugin :gem, :includeRubygemsInResources => true, :jrubyVersion => '9.0.0.0' do
execute_goal :initialize
end

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 @@ -19,7 +19,7 @@ gem 'flickraw', '0.9.7'
extension 'org.jruby.maven:mavengem-wagon:2.0.0-SNAPSHOT'
repository :id => :mavengems, :url => 'mavengem:https://rubygems.org'

plugin 'org.jruby.maven:gem-maven-plugin:${jruby.plugins.version}', :includeRubygemsInTestResources => false, :includeRubygemsInResources => true, :includeLibDirectoryInResources => true, :jrubyVersion => '9.0.0.0' do
jruby_plugin :gem, :includeRubygemsInTestResources => false, :includeRubygemsInResources => true, :includeLibDirectoryInResources => true, :jrubyVersion => '9.0.0.0' do
execute_goal :initialize
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@

id 'org.rubygems:zip', VERSION

plugin! 'org.jruby.maven:gem-maven-plugin:${jruby.plugins.version}', :includeRubygemsInResources => true, :jrubyVersion => '9.0.0.0'
jruby_plugin! :gem, :includeRubygemsInResources => true, :jrubyVersion => '9.0.0.0'
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@

id 'org.rubygems:gem1', '1'

plugin! 'org.jruby.maven:gem-maven-plugin:${jruby.plugins.version}', :includeRubygemsInResources => true, :jrubyVersion => '9.0.0.0'
jruby_plugin! :gem, :includeRubygemsInResources => true, :jrubyVersion => '9.0.0.0'
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@

id 'org.rubygems:gem2', '2'

plugin! 'org.jruby.maven:gem-maven-plugin:${jruby.plugins.version}', :includeRubygemsInResources => true, :jrubyVersion => '9.0.0.0'
jruby_plugin! :gem, :includeRubygemsInResources => true, :jrubyVersion => '9.0.0.0'
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 @@ -15,7 +15,7 @@
extension 'org.jruby.maven:mavengem-wagon:2.0.0-SNAPSHOT'
repository :id => :mavengems, :url => 'mavengem:https://rubygems.org'

plugin 'org.jruby.maven:gem-maven-plugin:${jruby.plugins.version}', :includeRubygemsInTestResources => false, :includeRubygemsInResources => true, :jrubyVersion => '9.0.0.0' do
jruby_plugin :gem, :includeRubygemsInTestResources => false, :includeRubygemsInResources => true, :jrubyVersion => '9.0.0.0' do
execute_goal :initialize
end

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 @@ -13,7 +13,7 @@
extension 'org.jruby.maven:mavengem-wagon:2.0.0-SNAPSHOT'
repository :id => :mavengems, :url => 'mavengem:https://rubygems.org'

plugin 'org.jruby.maven:gem-maven-plugin:${jruby.plugins.version}', :includeRubygemsInResources => true, :jrubyVersion => '9.0.0.0' do
jruby_plugin :gem, :includeRubygemsInResources => true, :jrubyVersion => '9.0.0.0' do
execute_goal :initialize
end

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 @@ -17,7 +17,7 @@
extension 'org.jruby.maven:mavengem-wagon:2.0.0-SNAPSHOT'
repository :id => :mavengems, :url => 'mavengem:https://rubygems.org'

plugin! 'org.jruby.maven:gem-maven-plugin:${jruby.plugins.version}', :includeRubygemsInResources => true, :jrubyVersion => '9.0.0.0'
jruby_plugin! :gem, :includeRubygemsInResources => true, :jrubyVersion => '9.0.0.0'

# add some ruby scripts to bundle
resource :directory => 'src/main/ruby'
Expand Down
2 changes: 1 addition & 1 deletion test/pom.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
} )
end

plugin 'org.jruby.maven:gem-maven-plugin:${jruby.plugins.version}' do
jruby_plugin :gem, '${jruby.plugins.version}' do
options = { :phase => 'initialize',
'gemPath' => '${gem.home}',
'gemHome' => '${gem.home}',
Expand Down

0 comments on commit bb778b4

Please sign in to comment.