Skip to content
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.

Allow addition <tag> formats #55

Closed
seancorfield opened this issue Dec 23, 2020 · 0 comments
Closed

Allow addition <tag> formats #55

seancorfield opened this issue Dec 23, 2020 · 0 comments

Comments

@seancorfield
Copy link
Owner

Currently, depstar assumes the <tag> in pom.xml is the version with a prefix of v but people use lots of different conventions. @dharrigan mentioned this on Slack, that he uses just the version number.

A replacement like this could be used:

(str/replace-first "<project><scm><tag>clojure-1.2.3</tag>" #"<tag>([^<]*)1.2.3</tag>" "<tag>$11.2.4</tag>")

This means the version portion needs to be regex-quoted \\Q...\\E. Or use java.util.regex.Pattern/quote

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant