Closed alexbudarov closed 2 years ago
Since a Jmix app is a single module app, SkipUpToDateStep
checks every source file in a project even if it's not related to Widgetset. To see the actual changes that trigger re-compile, the --info
param can be used in the Terminal, e.g.: ./gradlew assemble --info
.
In https://github.com/Haulmont/jmix-gradle-plugin/issues/8 the excludePaths
param for the compileWidgets
task has been introduced. So, in the simple case, when you only need to use some add-on with widgetset, the compileWidgets
task may look as follows:
compileWidgets {
generate 'com.company.demo.widgets.CustomWidgetSet'
excludePaths('**/com/company/demo/**')
}
In the next Jmix Gradle plugin release, the includePaths
param will be introduced (see https://github.com/Haulmont/jmix-gradle-plugin/issues/30).
Jmix 1.1.0. Project: https://github.com/jmix-projects/sample-sales-jmix/tree/security-advanced-facebook-complete
Sometimes (not always)when you run Jmix application in Studio with no changes in the project, Gradle executes
compileWidgets
task.Because of that, application is launched for 1 minute every time.
Also I see this message in Gradle console:
Is it problem with project or with task?