We have a tomcat app that we build using gradle 2.13 as project-name-1.0-SNAPSHOT several times a day. It has a bunch of dependency artifacts built by ourselves that we upload to a repository as -SNAPSHOT.jar-s. I was looking for a way to somehow rename those modules after they were downloaded and put into WEB-INF folder of the war to their timestamped version they originally allocated to when uploaded to repository like:
So I’ll find in WEB-INF all those jars with names like the above. I feel like there’s some complexity here because of how the dependecies are declared in build.gradle and how it will build the classpath so I have to fix it after dependency files are renamed and it seems to be a chicken/egg problem to me because of how gradle calculates project dependencies.