summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2015-05-06 15:09:41 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2015-05-06 15:09:41 -0700
commit15d655f4030cc1d1a45669ed1acd220cfc149d76 (patch)
treed39a1fa42833944b935fe1ce4d47fc0e66b2897b /Rakefile
parente36e98192dcb90bec267fb04000678017f7d1cb0 (diff)
parent4a60719c6a4b0c383b7deb4ff5cc8b94e3b1ba76 (diff)
downloadpsych-15d655f4030cc1d1a45669ed1acd220cfc149d76.zip
Merge pull request #235 from mkristian/snakeyaml-property
little ruby-maven related improvements
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/Rakefile b/Rakefile
index 133aa6a..bf332a7 100644
--- a/Rakefile
+++ b/Rakefile
@@ -48,10 +48,9 @@ $hoe = Hoe.spec 'psych' do
require "rake/javaextensiontask"
Rake::JavaExtensionTask.new("psych", spec) do |ext|
require 'maven/ruby/maven'
- # tell maven via system properties the snakeyaml version
- ENV_JAVA['snakeyaml.version'] = Psych::DEFAULT_SNAKEYAML_VERSION
# uses Mavenfile to write classpath into pkg/classpath
- Maven::Ruby::Maven.new.exec( 'dependency:build-classpath')#, '--quiet' )
+ # and tell maven via system properties the snakeyaml version
+ Maven::Ruby::Maven.new.exec( 'dependency:build-classpath', "-Djruby.version=#{JRUBY_VERSION}", "-Dsnakeyaml.version=#{Psych::DEFAULT_SNAKEYAML_VERSION}")#, '--quiet' )
ext.source_version = '1.7'
ext.target_version = '1.7'
ext.classpath = File.read('pkg/classpath')