Skip to content

Commit

Permalink
Include prep step (#5)
Browse files Browse the repository at this point in the history
lets you do the following:

```shell
❯ cat deps.edn
{:deps {mb/macaw {:local/root "/Users/dan/projects/work/macaw"}}}

❯ clj
Error building classpath. The following libs must be prepared before use: [mb/macaw]

❯ clj -X:deps prep
Prepping mb/macaw in /Users/dan/projects/work/macaw
Note: Annotation processing is enabled because one or more processors were found
  on the class path. A future release of javac may disable annotation processing
  unless at least one processor is specified by name (-processor), or a search
  path is specified (--processor-path, --processor-module-path), or annotation
  processing is enabled explicitly (-proc:only, -proc:full).
  Use -Xlint:-options to suppress this message.
  Use -proc:none to disable annotation processing.
Note: ./java/com/metabase/macaw/ASTWalker.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

❯ clj
Clojure 1.11.1
user=> (require 'macaw.core)
nil
user=>
```
  • Loading branch information
dpsutton authored Feb 27, 2024
1 parent 06fcb15 commit 817e253
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions build.clj
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
;; Further info: https://clojure.org/guides/tools_build#_mixed_java_clojure_build

(ns build
(:refer-clojure :exclude [compile])
(:require
[clojure.java.shell :as sh]
[clojure.string :as str]
Expand Down
7 changes: 6 additions & 1 deletion deps.edn
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{:paths
["src" "java" "resources" "target/classes"]
["src" "resources" "target/classes"]

:deps/prep-lib
{:alias :build
:fn compile
:ensure "target/classes"}

:deps
{com.github.jsqlparser/jsqlparser {:mvn/version "4.8"}} ; The actual SQL Parser to wrap!
Expand Down

0 comments on commit 817e253

Please sign in to comment.