New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lein-droid doesn't exclude dependencies in ${HOME}/.lein/profile.clj #111

Closed
sakuraiyuta opened this Issue Nov 19, 2014 · 4 comments

Comments

Projects
None yet
2 participants
@sakuraiyuta

sakuraiyuta commented Nov 19, 2014

project.clj options :profiles said:

For specifying system-wide attributes Leiningen uses $HOME/.lein/profiles.clj file and its :user profile. It works for Clojure-Android projects as well, except for three attributes: :dependencies, :repl-options and :injections. On many configurations they include dependencies and hooks that are incompatible with Clojure-Android, so they are just ignored by lein-droid.

but, lein droid build looks like gets all of dependencies in ${HOME}/.lein/profiles.clj.

ex) ${HOME}/.lein/profiles.clj:

{:user
  :plugins [[lein-droid "0.3.0-beta4"]]
  :dependencies [[jonase/kibit "0.0.8"]]}

I expect that lein-droid excludes kibit...but lein droid build makes error:

$ lein droid build
...................
Build type: debug, dynamic compilation: enabled, remote REPL: enabled.
...................
Compiling kibit.rules.arithmetic
Exception in thread "main" java.lang.ExceptionInInitializerError
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:274)
...................
Caused by: java.lang.IllegalArgumentException: No matching ctor found for class kibit.rules.util$compile_rule$fn__4914
        at clojure.lang.Reflector.invokeConstructor(Reflector.java:163)
        at clojure.lang.LispReader$EvalReader.invoke(LispReader.java:1053)
...................
Compilation failed.
@alexander-yakushev

This comment has been minimized.

Show comment
Hide comment
@alexander-yakushev

alexander-yakushev Nov 19, 2014

Member

I forgot to update that part of the docs. In version 0.3.0-x lein-droid no longer messes with the profiles and excludes any dependencies. Please recreate the project using the newest lein-droid version and stick to this documentation https://github.com/clojure-android/lein-droid/wiki/Profiles.

Member

alexander-yakushev commented Nov 19, 2014

I forgot to update that part of the docs. In version 0.3.0-x lein-droid no longer messes with the profiles and excludes any dependencies. Please recreate the project using the newest lein-droid version and stick to this documentation https://github.com/clojure-android/lein-droid/wiki/Profiles.

@sakuraiyuta

This comment has been minimized.

Show comment
Hide comment
@sakuraiyuta

sakuraiyuta Nov 19, 2014

I got it. Thanks documentation update.
I'll try re-generate project.clj using lein droid new, and merge present one.

sakuraiyuta commented Nov 19, 2014

I got it. Thanks documentation update.
I'll try re-generate project.clj using lein droid new, and merge present one.

@alexander-yakushev

This comment has been minimized.

Show comment
Hide comment
@alexander-yakushev

alexander-yakushev Nov 19, 2014

Member

UPD: No, sorry, still better to regenerate as other things besides project.clj have changed too.

Member

alexander-yakushev commented Nov 19, 2014

UPD: No, sorry, still better to regenerate as other things besides project.clj have changed too.

@sakuraiyuta

This comment has been minimized.

Show comment
Hide comment
@sakuraiyuta

sakuraiyuta commented Nov 19, 2014

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment