lib/maven/tools/gem_project.rb in maven-tools-0.29.0 vs lib/maven/tools/gem_project.rb in maven-tools-0.29.1
- old
+ new
@@ -425,10 +425,10 @@
def gem(*args, &block)
dep = nil
if args.last.is_a?(Hash)
options = args.delete(args.last)
unless options.key?(:git) || options.key?(:path)
- if options[:platforms].nil? || is_jruby_platform(*(options[:platforms] || []))
+ if (options[:platform].nil? && options[:platforms].nil?) || is_jruby_platform(*(options[:platform] || options[:platforms] || []))
group = options[:group] || options[:groups]
if group
[group].flatten.each do |g|
if dep
profile(g).dependencies << dep