Gradle assemble does not pick the latest build.gradle

Hi

I am working on a grails application that uses gradle for build. I have written a custom plugin to change the version in the dependencies section of build.gradle. It is working fine. When i do a gradle assemble, it changes the version in the dependencies section in build.gradle, but when it builds the grails app, it is not picking the latest version. Should i do anything for that?

Thanks Smurf

I have tried ‘type:sync’ but it does not work. Can anyone please help me on this