Fork me on GitHub
#cursive
<
2017-11-26
>
eprozium17:11:28

any chance adding gradle-clojure support?

cfleming22:11:51

@eprozium It should just work, what sort of support were you after?

cfleming22:11:26

One thing might be the REPL support, I know they’ve been working on that but I’m not sure if it’s been released yet.

eprozium22:11:33

@cfleming there are several integration points: NewProject/Gradle : a checkbox for Clojure, and another one for ClojureScript ; Clojars as aditional repo in build.gradle ;

eprozium23:11:22

@cfleming also to enhance usability, in NewProject/Clojure : all possibilities should be listed like it's done for Scala. So Leiningen should be a suboption together with gradle-clojure (and maybe boot in the future), not a main-option like gradle and maven.

cfleming23:11:57

@eprozium Yes, adding the extra repo etc would be good, as well as adding the Clojure and CLJS deps

cfleming23:11:42

I’m not sure I agree about Leiningen not being a top-level option though - at the end of the day, lein is basically like Maven. Why would it not be a top-level option?

cfleming23:11:28

Similarly for Gradle - once I’ve added the options so that a Gradle project has a CLJ and CLJS option, it’s really just a Gradle project, it’s not a Clojure project.

cfleming23:11:44

So you’ll just select Gradle, then Clojure and you’ll be set.

eprozium23:11:28

Lein is not general, the same way SBT is not.

eprozium23:11:28

Boot would also not be general, hence would belong as sub-option too.

cfleming23:11:07

Well, in theory you can build anything with either of them.

eprozium23:11:37

the grouping under Clojure would allow to see what options are there, the same way Scala has it.

cfleming23:11:14

Ok, I’ll check it out - I haven’t used the Scala plugin in ages

eprozium23:11:09

for scala there are 2 plugins: one for scala and one for SBT

cfleming23:11:11

Right, I don’t want to do that, since everyone using Clojure will want Leiningen

cfleming23:11:35

And it’s confusing needing to download two plugins just to get started.

eprozium23:11:53

of course. I just mentioned that for Scala this is needed in order to see the UI example

cfleming23:11:18

I actually see the sbt option with just Scala installed.

cfleming23:11:35

I see what you mean. That would probably make sense to have Leiningen under the Clojure option.

eprozium23:11:42

hmm, than some features will be missing

cfleming23:11:08

I don’t think I would put gradle-clojure there, since to use that you’d select Gradle and then the Clojure option.

cfleming23:11:42

But lein/boot/plain IDEA project/CLJS quickstart project etc could live under there.

eprozium23:11:52

imho gradle-clojure could also be added: this way all options would be in one place: less cofising for new users

cfleming23:11:43

I’d have to check, I’m not sure I can do that, since I’d need to be able to start the Gradle project creation flow with some options selected - I don’t know if that’s possible.

eprozium23:11:00

but I guess for that a new "init" type would be required, and there's none yet.

eprozium23:11:18

"gradle init" is too limited for now 🙁