summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorCharles Oliver Nutter <headius@headius.com>2018-09-19 11:24:28 -0500
committerCharles Oliver Nutter <headius@headius.com>2018-09-19 11:24:28 -0500
commit8ff855f61f2f1d9e4adda31eb0a9cc580630ebab (patch)
tree4c68795897991557151a7b939f8ebcc5b16ef794 /Rakefile
parent96705dee85f767e9bb8a04f319ec3a2a90d29ac0 (diff)
downloadpsych-8ff855f61f2f1d9e4adda31eb0a9cc580630ebab.tar.gz
Force loading of ./lib/psych/versions.rb to get updated consts.
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index 9ff37d6..5c5e8d4 100644
--- a/Rakefile
+++ b/Rakefile
@@ -12,9 +12,10 @@ end
if RUBY_PLATFORM =~ /java/
require 'rake/javaextensiontask'
- require_relative 'lib/psych/versions'
Rake::JavaExtensionTask.new("psych") do |ext|
require 'maven/ruby/maven'
+ # force load of versions to overwrite constants with values from repo.
+ load './lib/psych/versions.rb'
# uses Mavenfile to write classpath into pkg/classpath
# and tell maven via system properties the snakeyaml version
# this is basically the same as running from the commandline: