lib/maven/tools/gem_project.rb in maven-tools-0.32.3 vs lib/maven/tools/gem_project.rb in maven-tools-0.32.4

- old
+ new

@@ -307,9 +307,18 @@ bundler.execution.goals << "install" bdeps.each do |d| bundler.gem(d) end + + # use the locked down version if available + if @lock + bundler.dependencies.each do |d| + if d.group_id == 'rubygems' && @lock.keys.member?( d.artifact_id ) + d.version = @lock[ d.artifact_id ].version + end + end + end end end end if plugin?(:bundler)