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

Generate new pom.xml from template (like clj-new) #92

Closed
seancorfield opened this issue Jul 10, 2021 · 3 comments
Closed

Generate new pom.xml from template (like clj-new) #92

seancorfield opened this issue Jul 10, 2021 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@seancorfield
Copy link
Owner

Currently, depstar uses tools.deps.alpha to generate a pom.xml if it doesn't exist but it produces a pretty minimal one.

It would be nice if depstar used the clj-new template for pom.xml for a new template and then used tools.deps.alpha to just sync dependencies.

@seancorfield seancorfield self-assigned this Jul 10, 2021
@seancorfield seancorfield added the enhancement New feature or request label Jul 10, 2021
@seancorfield
Copy link
Owner Author

There are quite a few values in the pom.xml template that clj-new uses, including scm-domain and scm-user which it deduces from the project information (such as the group ID). It seems a shame to have to duplicate that into depstar so maybe I need to split that out into a new project that can be reused by both.

@seancorfield
Copy link
Owner Author

This is where in clj-new that data is deduced from the group ID + artifact ID (as project name):

https://github.com/seancorfield/clj-new/blob/develop/src/clj/new/templates.clj#L152-L173

@seancorfield
Copy link
Owner Author

I've added pom file generation to deps-new at this point and tools.build's write-pom is getting more capable all the time so I don't think this is worth spending time on, especially since I would like to sunset depstar at some point once tools.build's uber task gets good enough.

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

No branches or pull requests

1 participant