lib/maven/tools/dsl.rb in maven-tools-1.1.3 vs lib/maven/tools/dsl.rb in maven-tools-1.1.4

- old
+ new

@@ -1,9 +1,8 @@ require 'fileutils' require 'maven/tools/gemspec_dependencies' require 'maven/tools/artifact' -require 'maven/tools/jarfile' require 'maven/tools/versions' require 'maven/tools/gemfile_lock' require 'maven/tools/dsl/jars_lock' module Maven @@ -347,9 +346,12 @@ end end private :setup_jruby def jarfile( file = 'Jarfile', options = {} ) + # need to do this lazy as it requires yaml and with this + # jar-dependencies which will require_jars_lock + require 'maven/tools/jarfile' if file.is_a? Hash options = file file = 'Jarfile' end if file.is_a?( Maven::Tools::Jarfile )