Fork me on GitHub
#tools-deps
<
2021-08-29
>
wactbprot14:08:02

What is the recommended way to version a project that uses tools.deps? I mean: where should the version number be placed? Thanks in advance.

seancorfield15:08:33

@wactbprot Can you explain what you use the version number for? In the code of the app itself? Just in the pom.xml file? Something else?

seancorfield15:08:55

Are you building a library? An application?

seancorfield15:08:45

For my OSS projects (libraries), I've been using the :version argument of depstar to update the pom.xml file's <version> and <scm><tag> fields up until I switched to tools.build which handles both of those in its write-pom function, and it computes it automatically based on the git commit count.

wactbprot18:08:53

Wow, that's a lot of question marks. In pre tools.build times the answer seems to be: it depends. I write oss for a small team (libs and apps). I distribute the code via git. If I interpret your answer correctly, tools.build fills a gap. Thanks for pointing out this new way.

seancorfield18:08:42

If the code is on github, folks can depend on it directly from their deps.edn file.