lib/core/build.rb in buildr-1.2.6 vs lib/core/build.rb in buildr-1.2.7

- old
+ new

@@ -111,12 +111,14 @@ # make() # # Make a release. def make() check - options = ['--buildfile', filename, 'DEBUG=no'] - options << '--environment' << Buildr.environment unless Buildr.environment.to_s.empty? - version = with_next_version { |filename, version| sh "#{command} clean upload #{option.join(' ')}" } + version = with_next_version do |filename, version| + options = ['--buildfile', filename, 'DEBUG=no'] + options << '--environment' << Buildr.environment unless Buildr.environment.to_s.empty? + sh "#{command} clean upload #{options.join(' ')}" + end tag version commit version + "-SNAPSHOT" end protected