Fork me on GitHub
#leiningen
<
2017-07-27
>
danielcompton00:07:43

@lumir can you add lein pprint plugin and run lein pprint? There should be a default :prep-tasks ["javac" "compile"] in there that compiles your java sources for you. Also, which command are you running that doesn't build your java classes?

lumir00:07:51

i tried pretty much any task including lein compile and lein javac, but nothing works without that profile

lumir10:07:59

i finally figured it out… there we’re 2 problems: dev profile had additional source path containing ns without package and prod profile was missing javac prep-task. thanks @rarous and @danielcompton for help 😉

kingcode16:07:10

Is it possible to run JUnit tests from within leiningen? Anyone?

kingcode16:07:36

JUnit tests written in Java, that is…thx

kingcode16:07:56

I found lein-junit, will try that…

waffletower19:07:00

I have written a library, part of which, has code that utilizes [com.microsoft.azure/adal4j "1.2.0"]

waffletower19:07:56

adal4j declares dependencies with version ranges, one of which has its own dependency with a version range as well.

waffletower19:07:50

Is there a way to specify the dependencies within the project.clj for my library, such that downstream consumers of my library don’t have to manage the dependency ranges themselves?

waffletower19:07:19

[[com.microsoft.azure/adal4j "1.2.0" :exclusions [com.nimbusds/lang-tag
                                                   com.nimbusds/nimbus-jose-jwt
                                                   net.minidev/json-smart]]
 ;; adal4j dependencies with version ranges use
 ;; explicit versions ¯\_(ツ)_/¯
 [com.nimbusds/lang-tag "1.4.3"]
 [com.nimbusds/nimbus-jose-jwt "4.40" :exclusions [net.minidev/json-smart]]
 [net.minidev/json-smart "2.3"]]

waffletower19:07:43

I thought that the explicit addition of specific dependencies, as I show above, would include them in the library’s jar.

waffletower19:07:02

If I provide these last three explicit dependencies in the consumer’s project.clj, instead of the project.clj for my library (as I show here), the dependencies are found.

waffletower20:07:03

But they are not found if the downstream consumer of the library simply includes the library as a dependency.

danielcompton22:07:00

@waffletower what POM is generated from lein pom?