|
While it's aware of a module's dependencies, the webapp is currently only able to:
- release when there are no SNAPSHOT dependencies
- raise a red flag when SNAPSHOT dependencies are present
In the case of SNAPSHOT dependencies, the webapp should instead be able to:
- release the SNAPSHOT dependencies
- then come back to release the module
If too difficult, a simpler and intermediate approach would be to feed the webapp an ordered list of modules to release.
Implementation notes
IIUC you are dealing with a DAG though and want to do topological sorting. After some googling I found https://jgrapht.org/javadoc-1.4.0/org/jgrapht/graph/DirectedAcyclicGraph.html from the JGraphT library, which looks promising. I didn't use it before neither though...
getRoot() is basically https://jgrapht.org/javadoc-1.4.0/org/jgrapht/graph/DirectedAcyclicGraph.html#iterator() here
|