Skip to main content
Prashardan
Level 4
April 13, 2023
Beantwortet

Gradle build not taking latest changes

  • April 13, 2023
  • 1 Antwort
  • 2721 Ansichten

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 

Dieses Thema wurde für Antworten geschlossen.
Beste Antwort von 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 Antwort

lukasz-m
Community Advisor
lukasz-mCommunity AdvisorAntwort
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: