tools-deps

Discuss tools.deps.alpha, tools.build, and the clj/clojure command-line scripts! See also #depstar #clj-new
2020-11-07T08:36:17.337800Z

yay http://grep.app

alexmiller 2020-11-07T14:00:02.339Z

Donā€™t get too excited, very experimental

dominicm 2020-11-07T14:04:58.343500Z

I just loved the approach :)

2020-11-07T14:05:41.343700Z

Currently digging through depstar etc in a spare few minutes, and Iā€™m sat wishing the community had just adopted Stu Hallowayā€™s lancet for builds 12+ years ago šŸ˜† Seriously though, I know ant was a bit of a pain at times but ant as sexps/edn with some deployment stuff would be miles better than what we have right now.

alexmiller 2020-11-07T14:06:39.345100Z

I still like many things about ant

2020-11-07T14:06:45.345300Z

yeah me too

alexmiller 2020-11-07T14:07:58.347600Z

The only thing maven did right was standardize deps and repos. But that was so big, it won.

2020-11-07T14:09:22.348900Z

Yeah was literally about to say just that, andā€¦ The other problem with ant was that every build was different; but it was expressive enough and pretty efficient and the core tasks worked well. Maven was easier for simple library builds; but far harder for anything that needed to do more than compile, dist, deploy and document.

2020-11-07T14:10:57.349900Z

You can integrate resolution and deployment with ant right? Isnā€™t that what ivy was? I never set that up all those years back.

dominicm 2020-11-07T14:11:52.350600Z

Gradle seemed very sophisticated when I looked at it.

2020-11-07T14:13:02.351700Z

I never used it; looked like Rakeā€¦ essentially ant built as a dsl in groovy right?

borkdude 2020-11-07T14:27:03.353700Z

Today a new version of clj-kondo was released that includes deps.edn linting. You may have to update flycheck-clj-kondo if you are using emacs integration.

alexmiller 2020-11-07T14:52:06.358Z

I have known many people preaching gradle over the years and have given it an honest shot a couple times. I found it inscrutable. Itā€™s probably just me but I just could not understand how to do anything. Iā€™m the same way with ruby though - I just find it baffling. Just give me some parens man.

borkdude 2020-11-07T15:02:25.359Z

What I found most baffling about ruby was rails (I know that's not ruby, but very common): I didn't now where to look or follow things, things just magically came from random places.

borkdude 2020-11-07T15:03:39.359500Z

At least ruby doesn't have significant whitespace. Don't get me started on that! </rant>

ā˜ļø 2
dominicm 2020-11-07T15:04:52.359700Z

My recollection of Gradle was seeing the sheer investment someone had made to integrate ClojureScript with the build system so the caching/dependency system would work. May not have been Gradle, might have been something else.

flowthing 2020-11-07T17:12:04.360500Z

Gradle is fine, though quite complex. One big downside it has compared to Ant, IMO, is that it doesnā€™t have immutable properties.

dharrigan 2020-11-07T17:39:53.361400Z

We use gradle a lot at work, more specifically gradle with the kotlin dsl. One can declare vals which are immutable (or vars, which are mutable)

dharrigan 2020-11-07T17:40:17.361900Z

val foo = "hello" would make foo immutable.

dharrigan 2020-11-07T17:40:53.362500Z

I think the kotlin dsl is winning (esp for android and spring based projects). Others may still use the groovy dsl.

flowthing 2020-11-07T18:41:59.367400Z

Right, the Kotlin DSL didnā€™t exist back when I most used Gradle. Still, I donā€™t think that helps if you want to define a property in the CLI invocation such that itā€™s not overwritten somewhere down the chain.