Vaadin: Gradle: не может получить доступ к «productionMode»: он закрыт в «VaadinFlowPluginExtension» - PullRequest
0 голосов
/ 12 марта 2019

Ваадин 12.0.4

Gradle 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
...