Gradle 5.1.1
В моем build.gradle
plugins {
kotlin("jvm") version "1.3.20"
id("com.github.johnrengelman.shadow") version "4.0.3"
id("com.devsoap.vaadin-flow") version "1.0"
id("org.gretty") version "2.3.1"
}
Я строю свой проект Vaadin с помощью плагина shadow jar в Gradle.
Успешная сборка.Но мне нужно построить проект Vaadin в производственном режиме.Так что в моем build.gradle я добавляю:
vaadin {
setProductionMode(true)
}
Но я получаю ошибку при попытке построить проект:
> Task :nodeSetup UP-TO-DATE
> Task :yarnSetup UP-TO-DATE
> Task :vaadinInstallYarnDependencies FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':vaadinInstallYarnDependencies'.
> Process 'command 'myproject\.gradle\yarn\yarn-v1.12.3\yarn.cmd'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.