Expand my Community achievements bar.

SOLVED

Gradle build not taking latest changes

Avatar

Level 3

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 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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:

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

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: