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
Migrate :project/jar and :project/uberjar aliases to tools.build #43
Comments
Thank you for the work on build-clj project, it's high on my to-do list The plan is to move to tools.build as soon as I have had time to look at this approach in detail (should be working on this over the next few weeks) If I understand correctly, a build.edn file is required. If so, I would need to understand at least the basics of this before switching and include a suitable config I also plan to prioritize deps-new over clj-new (and create several templates) which simplifies the build process by providing a build.edn configuration. Thank you. |
What is |
@practicalli-john I've added some examples to the |
Using the stand-alone commands seems to require specific aliases defined, eg. to run tests then If the As build-clj looks for cognitect/test_runner.clj by default. If changing Some investigation required into tools.build and build-clj is still required. |
I wasn't sure whether your last comment was "musing out loud" or some questions intended for me, which is why I didn't respond at the time. However, this feels like a question I should answer:
This comes about because the tests are run in a separate process, so that none of the
If you execute tests in-process -- as happens if you just use an alias to run Cognitect's test-runner directly -- you can just require, resolve, and directly call the "exec" function from your |
After much though and slack discussions I'll deprecate / delete all aliases that can be done with tools.build instead. Add a section to Practicalli Clojure to cover tools.build and any useful projects that support it. |
Resolved by #61 |
Add a workable approach to using tools.build from Practicalli Clojure deps.edn, ideally without having to add any other files to a project (external dependency to using the alias)
References
Background
:project/jar
and:project/uberjar
aliases depend ondepstar
which was deprecated (and archived) for six months.tools.build
should be the preferred approachThe text was updated successfully, but these errors were encountered: