Skip to content

Add create-basis/process example to tools.build docs  #538

Open

Description

@seancorfield

Per discussion on Slack about using clojure.tools.build to run tests that need a particular classpath, including the test runner itself, Alex said "you can use a combo of create-basis, java-command, and process to execute it".

It would be great if the tools.build guide had an example of doing this with Cognitect's test-runner to provide a canonical example of how to do this in a build script (where the build script is invoked as the only dependency via -T).

Activity

  1. seancorfield commented on Mar 27, 2026

    @seancorfield
    MemberAuthor

    This is well-documented on https://clojure-doc.org so I'm closing this output.

  2. puredanger commented on Mar 27, 2026

    @puredanger
    Member

    I would like to leave this open for consideration in the tools.build guide, thanks

  3. seancorfield commented on Mar 27, 2026

    @seancorfield
    MemberAuthor

    Fair enough. The relevant section on clojure-doc.org is https://clojure-doc.org/articles/cookbooks/cli_build_projects/#running-tasks-based-on-aliases -- feel free to lift any parts of them for inclusion in the tools.build guide.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions