无法在Vaadin的gradle项目中设置vaadin.productionMode = true

时间:2019-03-12 15:53:29

标签: gradle vaadin

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"
}

我通过Gradle中的 shadow jar插件构建了Vaadin项目。

成功建立。 但是我需要在生产模式下构建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.

0 个答案:

没有答案