Gradle build not taking latest changes | Community
Skip to main content
Prashardan
Level 4
April 13, 2023
Solved

Gradle build not taking latest changes

  • April 13, 2023
  • 1 reply
  • 2692 views

Hi Team

 

I am first time working gradle project. Using gradlew command, I am build the project successfully however my java file changes are not reflecting properly.

 

When I do some changes on js/html files that changes are reflecting after executing gradlew and installing latest package local. But when I update some code in java files jar is not updating even after delete jar and executing gradlew.

 

Please suggest here.

 

Thanks and Regards

Prashanthi 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by lukasz-m

Hi @ pras78022281,

In case of problems with Gradle cache you can simply disable it. This can be done two ways:

  • set false value of org.gradle.caching property in gradle.properties file

 

org.gradle.caching=false​

 

  • use --no-build-cache command

 

sh gradlew --no-build-cache​

 

More information you can find under Gradle documentation:

1 reply

lukasz-m
Community Advisor
lukasz-mCommunity AdvisorAccepted solution
Community Advisor
May 7, 2023

Hi @ pras78022281,

In case of problems with Gradle cache you can simply disable it. This can be done two ways:

  • set false value of org.gradle.caching property in gradle.properties file

 

org.gradle.caching=false​

 

  • use --no-build-cache command

 

sh gradlew --no-build-cache​

 

More information you can find under Gradle documentation: