This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-02-18
Channels
- # announcements (5)
- # aws (4)
- # babashka (30)
- # beginners (90)
- # calva (31)
- # clj-on-windows (16)
- # clojure (110)
- # clojure-dev (10)
- # clojure-europe (26)
- # clojure-nl (1)
- # clojure-norway (20)
- # clojure-spec (25)
- # clojure-uk (15)
- # clojured (2)
- # clojurescript (12)
- # code-reviews (2)
- # community-development (3)
- # conjure (14)
- # datomic (15)
- # defnpodcast (2)
- # events (1)
- # fulcro (17)
- # graalvm (8)
- # gratitude (1)
- # introduce-yourself (2)
- # jobs-discuss (7)
- # kaocha (6)
- # lsp (9)
- # luminus (5)
- # nextjournal (7)
- # observability (9)
- # off-topic (71)
- # portal (5)
- # practicalli (1)
- # rdf (21)
- # re-frame (15)
- # releases (1)
- # shadow-cljs (24)
- # testing (7)
- # tools-build (13)
- # tools-deps (14)
- # xtdb (7)
Why doesn't b/compile-clj
deduce :src-dirs
from the basis? :thinking_face:
seems like it could
there might be some reasons not to do it (classes dir with copied resources in :paths) but could be a reasonable default
Thanks, that was a quick fix! The intent extends to other features requiring :src-dirs
like b/write-pom
. What do you think?
that one is a bit trickier as it separates srcs from resources, which are often lumped together in :paths
could b/javac
be handled in the same way as b/compile-clj
?
Generally Java source isn't on the classpath and thus isn't on :paths, so no
Prompted by a question from @jr0cket I have updated the build-clj
README with examples of running basic tools.build
tasks directly from the CLI, without needing a build.clj
file: https://github.com/seancorfield/build-clj#standalone-cli-usage (so build-clj
can be used in an alias across any projects, even if they haven't migrated to a separate build.clj
file yet).
you could add an alias for the long ns name in your deps.edn alias:
:ns-aliases {do org.corfield.build}
and then the commands would be like
clojure -T:build do/run-tests
Yeah, I'll leave that up to John when (if) he updates :project/jar
and :project/uberjar
to no longer use depstar
🙂
Updates to those aliases coming soon, I promise. Thanks for these examples, it make it much clearer.