AppComponent Dependency on Gradle and CUBA Studio

Hi Guys,

I’d like to ask for help on app component dependency at CUBA Studio.

My Structure

Base app (Install as app component, version 0.1-SNAPSHOT then upload into nexus)
Product app ( include base app at build.gradle

dependencies {
appComponent("com.haulmont.cuba:cuba-global:$cubaVersion")
appComponent('com.coffee.product:base-global:0.1-SNAPSHOT')
}

Base app - build and upload into nexus, updated version
Product app - for some reasons, product app refers to old version.

What I need to do is manually delete the cache at %user%/.gradle/caches and let the CUBA studio re-import again.

Is it a bug in CUBA Studio?

Regards,
CK

Hi,
Snaphshot dependencies in Gradle by default are cached, they won’t be requested at every project build.

You can reduce caching time to just one minute by adding some settings to build.gradle:
https://docs.gradle.org/5.4.1/userguide/troubleshooting_dependency_resolution.html#sec:controlling_dependency_caching_programmatically

1 Like

Alright Thanks. Alex