The extension function of this plug-in I used and another plug-in can be extended to resolve the latest.release dependency version to the real version number when tagging, and restore the latest.release function when switching to the next snapshot version. I think it is necessary for the author to integrate this function into the plugin if he has time.
import this plugin
id 'com.github.ben-manes.versions' version "${versions_plugin_version}"
Naming rules for version number variable names
Plugin version number:artifactID_plugin_version
Regular version number:artifactID_version
The extension function of this plug-in I used and another plug-in can be extended to resolve the latest.release dependency version to the real version number when tagging, and restore the latest.release function when switching to the next snapshot version. I think it is necessary for the author to integrate this function into the plugin if he has time.
extended content
These only contain my additions