Hello -
I’ve got a Gradle 6.1 multi-project build with one sub project using the Distribution plugin to generate our full installation. When running a clean build, all of the subproject build tasks, along with installDist
, run properly and the output is created in {buildDir}/install/{project.name}. If I immediately run installDist
again, without changing any inputs, Gradle correctly reports:
“> Task :myproj-distribution:installDist UP-TO-DATE”
In my case, the installation contains a file that needs to be updated after installation. The “default” file comes from the “src/main/dist/conf/some-config-file.txt”, which gets placed in {buildDir}/install/{project.name}/conf/some-config-file.txt". If I update this config file inside {buildDir}/install/{project.name}, then run installDist
again, gradle overwrites my updates with the default version from src/main/dist.
- Why does
installDist
run again if none of the input sources are modified? - Is there a way this behavior can be changed through configuration?
- Can gradle only update things in {buildDir}/install/{project.name} that have been modified in the source sets?
-mike