Is there gradle vaadin plugin to build production mode files?

Hi there. Can’t find anything on how to build with Gradle vaadin 10 project so that productionMode files were generated.
I used to do that with maven, but can’t find any documentation or snippets to do the same with Gradle.
Is there any other way except using Gradle Exec task with Maven plugin?

I am looking for something similar too… any one who have achived it?

Hi,

For the records: it is possible to enable production mode for Gradle builds via the [DS Vaadin Flow Gradle Plugin]
(https://docs.devsoap.com/vaadin_flow_gradle_plugin/).

build.gradle:

plugins {
    id 'com.devsoap.vaadin-flow' version '1.3.1'
}

//devsoap {
//    email = 'xxx'
//    key = 'xxx'
//}

vaadin {
    productionMode = true
}

Since I tested this with Spring Boot, this was also required to get into the production mode:

application.properties:

vaadin.servlet.productionMode=true