Giter Club home page Giter Club logo

ivy4r's People

Contributors

aboisvert avatar klaas1979 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ivy4r's Issues

package.with wont work correctly

Using an Ivy-Configuration for the package-task will overwrite everything additionally added.

ivy.conf :package => 'prod'
package(:war).with :libs => project('client')

Will only add the prod-libs to the war, the client-artifacts will be ignored.

buildr extension throws an obscure exception when publishing without setting publish_options

If you don't set any publish options, ivy4r's buildr extension will throw an exception like this when you invoke {project}:ivy:publish:

undefined method `*' for nil:NilClass
/Users/rsutphin/.rvm/gems/jruby-1.4.0@buildr/gems/ivy4r-0.10.5/lib/buildr/ivy_extension.rb:201:in `__publish__'
/Users/rsutphin/.rvm/gems/jruby-1.4.0@buildr/gems/ivy4r-0.10.5/lib/buildr/ivy_extension.rb:728:in `after_define'

If the default options are never sufficient, it would be nice if ivy4r would tell you that you need to set publish options rather than failing in this way.

"unknown method name `map'" during resolve

With buildr 1.3.5 and ivy4r 0.10.5, I'm seeing an exception whenever I do ivy:resolve. I put a minimal sample project as a gist. The trace output for the exception is there, but here's the short version:

[ivy_resolve] :: resolution report :: resolve 128ms :: artifacts dl 4ms
---------------------------------------------------------------------
|                  |            modules            ||   artifacts   |
|       conf       | number| search|dwnlded|evicted|| number|dwnlded|
---------------------------------------------------------------------
|      compile     |   1   |   0   |   0   |   0   ||   2   |   0   |
---------------------------------------------------------------------
Buildr aborted!
Fail: unknown method name `map'

"undefined method `to_string' for ["compile", "runtime", "unit-test"]:Array" during cachepath

There is another use of java-via-JRuby code in ivy/target.rb on line 155, preventing ivy4r from being used on MRI:

undefined method `to_string' for ["compile", "runtime", "unit-test"]:Array
/Users/rsutphin/.rvm/gems/ruby-1.8.6-p383/gems/ivy4r-0.11.0/lib/ivy/target.rb:155:in `java_map_to_ruby_hash'
/Users/rsutphin/.rvm/gems/ruby-1.8.6-p383/gems/ivy4r-0.11.0/lib/ivy/target.rb:146:in `ant_references'
/Users/rsutphin/.rvm/gems/ruby-1.8.6-p383/gems/ivy4r-0.11.0/lib/ivy/cachepath.rb:20:in `create_return_values'
/Users/rsutphin/.rvm/gems/ruby-1.8.6-p383/gems/ivy4r-0.11.0/lib/ivy/target.rb:62:in `execute_target'
/Users/rsutphin/.rvm/gems/ruby-1.8.6-p383/gems/ivy4r-0.11.0/lib/ivy/target.rb:33:in `execute'
/Users/rsutphin/.rvm/gems/ruby-1.8.6-p383/gems/ivy4r-0.11.0/lib/ivy4r.rb:145:in `cachepath'
/Users/rsutphin/.rvm/gems/ruby-1.8.6-p383/gems/ivy4r-0.11.0/lib/buildr/ivy_extension.rb:125:in `deps'
/Users/rsutphin/.rvm/gems/ruby-1.8.6-p383/gems/ivy4r-0.11.0/lib/buildr/ivy_extension.rb:406:in `filter'
/Users/rsutphin/.rvm/gems/ruby-1.8.6-p383/gems/ivy4r-0.11.0/lib/buildr/ivy_extension.rb:529:in `add_ivy_deps_to_java_tasks'

No libs in war when packaged without type

If you package a war with a type:

package(:war)

everything is fine. but when the type should be infered by the filename

package(:file => "somewar.war")

all the libs are missing

undefined method `size' for nil:NilClass during resolve

In certain circumstances, ivy4r will raise this exception during ivy:resolve:

Buildr aborted!
undefined method size' for nil:NilClass /Users/rsutphin/.rvm/gems/jruby-1.4.0@buildr/gems/ivy4r-0.10.5/lib/buildr/ivy_extension.rb:164:inresolve'
/Users/rsutphin/.rvm/gems/jruby-1.4.0@buildr/gems/ivy4r-0.10.5/lib/buildr/ivy_extension.rb:720:in `after_define'

From inspecting the code in ivy_extension.rb, it appears that this will happen when you have two buildr projects with a parent-child relationship where both of them have ivy.xmls.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.