summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorSHIBATA Hiroshi <hsbt@ruby-lang.org>2018-08-24 18:24:55 +0900
committerSHIBATA Hiroshi <hsbt@ruby-lang.org>2018-08-24 18:24:55 +0900
commit74a1a0930f394eb294eb3d3c2b9f9cbedabde201 (patch)
treeee430720d4479b8e62cbd55487dd386e67562cce /Rakefile
parentb06b57a340c3d62ab5f6f496be1054322185cf71 (diff)
downloadpsych-74a1a0930f394eb294eb3d3c2b9f9cbedabde201.tar.gz
To use version constant of snakeyamluse-relative-versions
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index d20f6b3..9ff37d6 100644
--- a/Rakefile
+++ b/Rakefile
@@ -12,13 +12,14 @@ end
if RUBY_PLATFORM =~ /java/
require 'rake/javaextensiontask'
+ require_relative 'lib/psych/versions'
Rake::JavaExtensionTask.new("psych") do |ext|
require 'maven/ruby/maven'
# 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:
# 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.21", '-Dverbose=true')
+ 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')