Re: Bazel as Clojure build tool

2020-06-30 Thread Mark Ingram
Since the last post here there are are the beginnings of some rules at: https://github.com/simuons/rules_clojure (I put in some PRs needed to make them work with latest versions of Bazel). Separate from that effort I have been looking at whether it is possible to structure the Bazel project to

Re: Bazel as Clojure build tool

2018-06-17 Thread Gregg Reynolds
On Mon, Jan 29, 2018, 10:16 AM Kiril Videlov wrote: > Hello, > I have been looking at the Bazel build tool for a > multi-language mono-repo and I was wondering if anybody has tried it in the > context of Clojure projects. I have only found the lein-monolith >

Re: Bazel as Clojure build tool

2018-06-11 Thread Colin Yates
If we are off topic... I once worked with a really smart guy who decided that AOP (using the Spring proxying mechanisms) was a great way of enforcing that customers could only see their line items. Only he did this before he went on holiday, didn’t tell anybody about it and whilst the filtering

Re: Bazel as Clojure build tool

2018-06-11 Thread Gregg Reynolds
On Mon, Jun 11, 2018, 3:03 PM Erik Assum wrote: > Totally off topic, but I once worked on a Java project where some of the > tests were written in groovy and they were a huge PITA: > > 1) The refactoring tools never found, nor refactored the groovy code > 2) The compilation errors introduced by

Re: Bazel as Clojure build tool

2018-06-11 Thread Erik Assum
Totally off topic, but I once worked on a Java project where some of the tests were written in groovy and they were a huge PITA: 1) The refactoring tools never found, nor refactored the groovy code 2) The compilation errors introduced by 1) never showed up in my IDE 3) Having to relate to tests

Re: Bazel as Clojure build tool

2018-06-11 Thread Gregg Reynolds
On Mon, Jun 11, 2018, 2:55 PM Rick Mangi wrote: > Next time you have to write unit tests for java, give groovy a try. > Well I guess we're getting a little of topic for clojure, but I see your point. Problem is I have only so much gray matter, I'm not sure how much room there is inside my skull

Re: Bazel as Clojure build tool

2018-06-11 Thread Gregg Reynolds
On Mon, Jan 29, 2018, 10:16 AM Kiril Videlov wrote: > Hello, > I have been looking at the Bazel build tool for a > multi-language mono-repo and I was wondering if anybody has tried it in the > context of Clojure projects. > Let's go back to basics: what do you mean by

Re: Bazel as Clojure build tool

2018-06-11 Thread Rick Mangi
Next time you have to write unit tests for java, give groovy a try. It has a lot of features that make this easy, 1 line map construction, overriding of private methods, super easy to make mocks. There's definitely some weird syntax, and it's slow, but I'm fine using it for glue or scripting. On

Re: Bazel as Clojure build tool

2018-06-11 Thread Gregg Reynolds
On Mon, Jun 11, 2018, 2:44 PM Rick Mangi wrote: > Believe it or not, I actually like groovy a lot. I used to use it to write > unit tests for java code. It's very easy to learn. > Will wonders never cease? I had to learn a bit of groovy a while back while dealing with Gradle, and came to hate

Re: Bazel as Clojure build tool

2018-06-11 Thread Rick Mangi
Believe it or not, I actually like groovy a lot. I used to use it to write unit tests for java code. It's very easy to learn. On Mon, Jun 11, 2018 at 3:40 PM Gregg Reynolds wrote: > > > On Mon, Jun 11, 2018, 2:30 PM wrote: > >> ... > >> We're starting to lean towards gradle >> > > You do

Re: Bazel as Clojure build tool

2018-06-11 Thread Gregg Reynolds
On Mon, Jun 11, 2018, 2:30 PM wrote: > ... > We're starting to lean towards gradle > You do understand that that means you have to deal with groovy? ;) Fwiw I've been working with Bazel a lot lately and I would never go back. -- You received this message because you are subscribed to the

Re: Bazel as Clojure build tool

2018-06-11 Thread rick
We currently use Pants to manage our huge python deployment and it's been a godsend for dependency management. We also have a bunch of clojure based kafka consumers (and a few APIs) that live in the same repo, but are built manually with lein and versioned/deployed separately. We've wanted a

Re: Bazel as Clojure build tool

2018-06-06 Thread Reid McKenzie
I previously worked with pants [1] in the context of an extremely large (~50GiB) repository which saw a huge amount of daily churn. In that context build tools like pants and Bazel become absolutely essential because the only way to have a reasonable CI/CD system and build/test times is to do

Re: Bazel as Clojure build tool

2018-06-04 Thread Nathan Fisher
It's not something that as a user you'd be exposed to. The easiest way to demonstrate the impact is to write a library and test target in two different ways for a Java project. 1. using java_library target for the library. 2. using genrule for the library that calls out to javac. Run the test

Re: Bazel as Clojure build tool

2018-04-16 Thread Colin Fleming
> > Don't wanna start a religious war, but I've worked with Gradle (and about > 150 other build tools). If Gradle makes you happy Bazel will make you > rapturous. > I need to use Gradle because the IntelliJ plugin development infrastructure uses it. That said, I just skimmed that blog post, and

Re: Bazel as Clojure build tool

2018-04-15 Thread Mark Derricutt
On 16 Apr 2018, at 8:08, Gregg Reynolds wrote: > Can you please elaborate on this a bit? I've been using Bazel for a project > that involve C and Java, with cross-compiles, and ABI parsing has never come > up. It just works. That's because Bazel already handles that for you, I've not followed

Re: Bazel as Clojure build tool

2018-04-15 Thread Gregg Reynolds
On Tue, Jan 30, 2018, 6:07 PM Colin Fleming wrote: > Another tool that works well for polyglot JVM projects is Gradle. I use it > to build Cursive, which has Java, Kotlin and AOT'ed Clojure. I released a > mostly-unsupported plugin for it, and Andrew Oberstar and

Re: Bazel as Clojure build tool

2018-04-15 Thread Gregg Reynolds
On Mon, Jan 29, 2018, 2:07 PM Nathan Fisher wrote: > ... > In order to get the speed that the build tool promises you need the > ability to efficiently parse the ABI of each file and only build its > dependents when the ABI has changed. > Can you please elaborate on

Re: Bazel as Clojure build tool

2018-01-30 Thread Colin Fleming
Another tool that works well for polyglot JVM projects is Gradle. I use it to build Cursive, which has Java, Kotlin and AOT'ed Clojure. I released a mostly-unsupported plugin for it, and Andrew Oberstar and others have taken it over and done a lot of work on it - it now lives at

Re: Bazel as Clojure build tool

2018-01-29 Thread Nathan Fisher
Hi Kiril, I think you’d need to set your expectations. Faster builds are unlikely to be one of the benefits. A unified build tool is one. I’ve seen a few similar attempts with Buck which was inspired by Bazel. They either generate lein projects on the fly or call into the Clojure compiler

Bazel as Clojure build tool

2018-01-29 Thread Kiril Videlov
Hello, I have been looking at the Bazel build tool for a multi-language mono-repo and I was wondering if anybody has tried it in the context of Clojure projects. I have only found the lein-monolith plugin which appears to