lib/maven/tools/artifact.rb in maven-tools-1.0.2 vs lib/maven/tools/artifact.rb in maven-tools-1.0.3
- old
+ new
@@ -140,15 +140,20 @@
options.delete( :group_id )
options.delete( :artifact_id )
options.delete( :version )
options.delete( :classifier )
options.delete( :exclusions )
+ options.delete( :scope ) if options[ :scope ] == :compile
self.merge!( options )
end
end
def gav
[ self[:group_id], self[:artifact_id], self[:version], self[:classifier] ].select { |o| o }.join( ':' )
+ end
+
+ def key
+ @key ||= [ self[:group_id], self[:artifact_id], self[:classifier] ].select { |o| o }.join( ':' )
end
def exclusions
if key?( :exclusions )
self[:exclusions].inspect.gsub( /[\[\]" ]/, '' ).split( /,/ )