grails / grails-core

The Grails Web Application Framework
http://grails.org
Apache License 2.0
2.79k stars 952 forks source link

Grails 7: Gradle is caching. BootRun does not show changes #13704

Open arjangch opened 2 months ago

arjangch commented 2 months ago

Expected Behavior

Any changes to build.gradle should take effect after re-running "bootRun"

Actual Behaviour

You will not see any changes after re-run. You need to "clean" first then "bootRun". There are some caching somewhere.

Steps To Reproduce

1- bootRun your app. 2- Do any changes to build.gradle. 3- bootRun your app again. You won't see change 4- clean your project. "./gradlew clean" 5- bootRun again. Now you see your changes.

Environment Information

Example Application

https://github.com/jamesfredley/grails-website-test/tree/7.0.0-SNAPSHOT

Version

grails=7.0.0-SNAPSHOT

jamesfredley commented 2 months ago

In gradle.properties try changing the following:

org.gradle.caching=true

org.gradle.caching=false