Skip to content

Commit

Permalink
add lacinia-parser local deps which must be prepared before use
Browse files Browse the repository at this point in the history
  • Loading branch information
namenu committed Feb 12, 2024
1 parent 46d2bfd commit 23b1ea8
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 10 deletions.
8 changes: 0 additions & 8 deletions build.clj
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,3 @@
(println "Pushing changes ...")
(build/process {:dir publish-dir
:command-args ["git" "push"]}))

(def basis (delay (build/create-basis {:project "deps.edn"})))

(defn compile-java [& _]
(build/delete {:path "target/classes"})
(build/javac {:src-dirs ["gen"]
:class-dir "gen/classes"
:basis @basis}))
4 changes: 2 additions & 2 deletions deps.edn
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{:deps {org.clojure/clojure {:mvn/version "1.11.1"}
org.antlr/antlr4-runtime {:mvn/version "4.13.1"}
com.walmartlabs/lacinia-parser {:local/root "./gen"}
org.flatland/ordered {:mvn/version "1.15.10"}
org.clojure/data.json {:mvn/version "2.4.0"}}
:paths ["src" "resources" "gen/src" "gen/classes"]
:paths ["src" "resources" "gen/target"]
:aliases
{:dev
{:extra-deps {criterium/criterium {:mvn/version "0.4.6"}
Expand Down
26 changes: 26 additions & 0 deletions gen/build.clj
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
; Copyright (c) 2021-present Walmart, Inc.
;
; Licensed under the Apache License, Version 2.0 (the "License")
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
; http://www.apache.org/licenses/LICENSE-2.0
;
; Unless required by applicable law or agreed to in writing, software
; distributed under the License is distributed on an "AS IS" BASIS,
; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
; See the License for the specific language governing permissions and
; limitations under the License.

;; clj -T:build <var>

(ns build
(:require [clojure.tools.build.api :as build]))

(def basis (delay (build/create-basis {:project "deps.edn"})))

(defn compile-java [& _]
(build/delete {:path "target/classes"})
(build/javac {:src-dirs ["src"]
:class-dir "target/classes"
:basis @basis}))
9 changes: 9 additions & 0 deletions gen/deps.edn
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{:deps {org.antlr/antlr4-runtime {:mvn/version "4.13.1"}}
:paths ["src" "target/classes"]
:deps/prep-lib {:ensure "target/classes"
:alias :build
:fn compile-java}
:aliases
{:build {:deps {io.github.hlship/build-tools
{:git/tag "0.10.1" :git/sha "7ecff5"}}
:ns-default build}}}
File renamed without changes.

0 comments on commit 23b1ea8

Please sign in to comment.