Vaadin 12.0.4
5.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"
}
val kotlinVersion = "1.3.20"
val jettyVersion = "9.4.14.v20181114"
val vaadinVersion = "12.0.4"
vaadin.autoconfigure()
vaadin {
productionMode = true
}
错误:
vaadin.version is not set, falling back to latest Vaadin version
Allow Vaadin to gather usage statistics by setting vaadin.submitStatistics=true (hide this message by setting it to false)
FAILURE: Build failed with an exception.
* Where:
Build file 'myproject\build.gradle.kts' line: 27
* What went wrong:
Script compilation errors:
Line 27: productionMode = true
^ Cannot access 'productionMode': it is private in 'VaadinFlowPluginExtension'
Line 27: productionMode = true
^ Val cannot be reassigned
Line 27: productionMode = true
^ The boolean literal does not conform to the expected type Property<Boolean!>!
3 errors