diff options
author | SHIBATA Hiroshi <hsbt@ruby-lang.org> | 2016-11-29 18:18:37 +0900 |
---|---|---|
committer | SHIBATA Hiroshi <hsbt@ruby-lang.org> | 2016-11-29 18:18:37 +0900 |
commit | dd73a7e5535a00a3b9f425f1eedb880e740c1065 (patch) | |
tree | b66090a34f96198a3012ea56da44c0ed5c58449b /Rakefile | |
parent | f5455216532f33e2b32bb035d14d820d1d37906b (diff) | |
download | psych-dd73a7e5535a00a3b9f425f1eedb880e740c1065.tar.gz |
Enabled to constant references for DEFAULT_SNAKEYAML_VERSION
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,3 +1,4 @@ +$LOAD_PATH.unshift './lib' require "bundler/gem_tasks" require "rake/testtask" @@ -15,7 +16,8 @@ if RUBY_PLATFORM =~ /java/ # and tell maven via system properties the snakeyaml version # this is basically the same as running from the commandline: # rmvn dependency:build-classpath -Dsnakeyaml.version='use version from Psych::DEFAULT_SNAKEYAML_VERSION here' - Maven::Ruby::Maven.new.exec( 'dependency:build-classpath', "-Dsnakeyaml.version=1.17", '-Dverbose=true')#, '--quiet' ) + load 'psych/versions.rb' + Maven::Ruby::Maven.new.exec('dependency:build-classpath', "-Dsnakeyaml.version=#{Psych::DEFAULT_SNAKEYAML_VERSION}", '-Dverbose=true') ext.source_version = '1.7' ext.target_version = '1.7' ext.classpath = File.read('pkg/classpath') |