mkristian / jbundler

bundler support for jars for jruby
MIT License
210 stars 39 forks source link

jbundler not properly respecting exclude/not versions #53

Closed rtyler closed 9 years ago

rtyler commented 9 years ago

In lookout/Hermann I'm trying to enumerate the following "jar-dependency"

   s.requirements << "jar org.apache.kafka:kafka_2.10, '>=0.8.1.1', '<=0.8.2.0', '!0.8.2-beta'"

My goal is to have a Jarfile that does:

source 'http://dl.bintray.com/lookout/systems'
# Pull in our custom fork of Apache Kafka as a transitive dependency
jar 'org.apache.kafka:kafka_2.10', '0.8.2.0'

Regardless of what I've tried, a jbundle install still gives me:

file:/usr/home/tyler/.rvm/rubies/jruby-1.7.15/lib/jruby.jar!/jruby/kernel19/kernel.rb:28 warning: executable? does not in this environment and will return a dummy value
file:/usr/home/tyler/.rvm/rubies/jruby-1.7.15/lib/jruby.jar!/jruby/kernel19/kernel.rb:28 warning: executable? does not in this environment and will return a dummy value
Using rake 10.3.2
Using i18n 0.6.9
Using json 1.8.1
Using minitest 5.3.4
Using thread_safe 0.3.4
Using tzinfo 1.2.1
Using activesupport 4.1.1
Using archive-tar-minitar 0.5.2
Using erubis 2.7.0
Using lookout-artifactory 1.1.0
Using lookout-semverly 1.1.7
Using artify 0.1.15
Using descendants_tracker 0.0.4
Using ice_nine 0.11.0
Using axiom-types 0.1.1
Using builder 3.2.2
Using bundler 1.7.2
Using mime-types 2.1
Using nokogiri 1.6.3.1
Using rack 1.5.2
Using rack-test 0.6.2
Using xpath 2.0.0
Using capybara 2.2.1
Using timers 1.1.0
Using celluloid 0.15.2
Using nio4r 1.0.0
Using celluloid-io 0.15.0
Using ci_reporter 1.9.1
Using coderay 1.1.0
Using coercible 1.0.0
Using concurrent-ruby 0.7.0
Using yamler 0.1.0
Using configatron 2.13.0
Using connection_pool 1.2.0
Using diff-lcs 1.2.5
Using multi_json 1.10.1
Using gherkin 2.12.2
Using multi_test 0.0.3
Using cucumber 1.3.10
Using docile 1.1.3
Using docopt 0.5.0
Using dotenv 0.10.0
Using equalizer 0.0.9
Using eventmachine 0.12.10
Using factory_girl 4.4.0
Using multipart-post 2.0.0
Using faraday 0.9.0
Using ffi 1.9.3
Using thor 0.18.1
Using foreman 0.63.0
Using formatador 0.2.4
Using rb-fsevent 0.9.4
Using rb-inotify 0.9.3
Using listen 2.6.0
Using lumberjack 1.0.4
Using method_source 0.8.2
Using slop 3.4.7
Using spoon 0.0.4
Using pry 0.9.12.6
Using guard 2.5.0
Using guard-cucumber 1.4.1
Using rspec-core 2.14.7
Using rspec-expectations 2.14.5
Using rspec-mocks 2.14.6
Using rspec 2.14.1
Using guard-rspec 4.2.7
Using jar-dependencies 0.1.4
Using hermann 0.20.1
Using virtus 1.0.3
Using maven-tools 1.0.5
Using ruby-maven-libs 3.1.1
Using ruby-maven 3.1.1.0.8
Using jbundler 0.6.4
Using jruby-jars 1.7.15
Using jruby-openssl 0.9.5
Using jruby-rack 1.1.14
Using jwt 0.1.13
Using jwe 0.2.12
Using keymaster-token 0.5.35
Using keymaster-client 0.13.100
Using log4r 1.1.10
Using lookout-jruby 1.2.4
Using lookout-statsd 0.9.0
Using rack-graphite 1.0.0
Using rack-requestash 0.3.1
Using lookout-rack-utils 1.5.0
Using sentry-raven 0.12.0
Using lookout-sentry-raven 0.4.16
Using middleware 0.1.0
Using protobuf 3.0.4
Using puma 2.7.1
Using rack-protection 1.5.2
Using rubyzip 1.1.6
Using simplecov-html 0.8.0
Using simplecov 0.8.2
Using simplecov-rcov 0.2.3
Using tilt 1.4.1
Using sinatra 1.4.4
Using stomp 1.3.2
Using warbler 1.4.4
Using yard 0.8.7.3
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.
Jar dependencies are up to date !

jbundler provided classpath:
----------------

jbundler runtime classpath:
---------------------------
/home/tyler/.m2/repository/org/apache/kafka/kafka-clients/0.8.2-beta/kafka-clients-0.8.2-beta.jar
/home/tyler/.m2/repository/io/netty/netty/3.7.0.Final/netty-3.7.0.Final.jar
/home/tyler/.m2/repository/log4j/log4j/1.2.17/log4j-1.2.17.jar
/home/tyler/.m2/repository/net/sf/jopt-simple/jopt-simple/3.2/jopt-simple-3.2.jar
/home/tyler/.m2/repository/jline/jline/2.11/jline-2.11.jar
/home/tyler/.m2/repository/org/slf4j/slf4j-log4j12/1.6.1/slf4j-log4j12-1.6.1.jar
/home/tyler/.m2/repository/org/mod4j/org/eclipse/xtext/log4j/1.2.15/log4j-1.2.15.jar
/home/tyler/.m2/repository/org/scala-lang/scala-library/2.10.1/scala-library-2.10.1.jar
/home/tyler/.m2/repository/org/xerial/snappy/snappy-java/1.1.1.3/snappy-java-1.1.1.3.jar
/home/tyler/.m2/repository/com/101tec/zkclient/0.3/zkclient-0.3.jar
/home/tyler/.m2/repository/com/yammer/metrics/metrics-core/2.2.0/metrics-core-2.2.0.jar
/home/tyler/.m2/repository/org/apache/zookeeper/zookeeper/3.4.6/zookeeper-3.4.6.jar
/home/tyler/.m2/repository/org/apache/kafka/kafka_2.10/0.8.2-beta/kafka_2.10-0.8.2-beta.jar
/home/tyler/.m2/repository/org/bouncycastle/bcprov-jdk15on/1.47/bcprov-jdk15on-1.47.jar
/home/tyler/.m2/repository/org/bouncycastle/bcpkix-jdk15on/1.47/bcpkix-jdk15on-1.47.jar
/home/tyler/.m2/repository/org/slf4j/slf4j-api/1.7.2/slf4j-api-1.7.2.jar
/home/tyler/.m2/repository/net/jpountz/lz4/lz4/1.2.0/lz4-1.2.0.jar

jbundler test classpath:
------------------------
    --- empty ---

jbundle complete

This occurs with both jbundler 0.6.4 and 0.7.0. I can't seem to avoid this bloody 0.8.2-beta dependency!