devsoap / ds-gradle-vaadin

Gradle plugin for building Vaadin Flow 10/11/12/13/14/15 apps
https://devsoap.com/gradle-vaadin-flow-plugin
Other
36 stars 13 forks source link

Vaadin 14 project does not builds when 'compatibilityMode=true' and 'productionMode=true' (Windows) #323

Closed fseregin closed 4 years ago

fseregin commented 4 years ago

Desktop:

Describe the bug Execution failed for task ':vaadinTranspileDependencies' when compatibilityMode=true and productionMode=true

To Reproduce Steps to reproduce the behavior:

  1. Use next build.gradle:
    plugins {
    id 'com.devsoap.vaadin-flow' version '1.3.4'
    }
    devsoap {
    email = '****'
    key = '****'
    }
    vaadin {
    version = '14.1.3'
    submitStatistics = false
    compatibilityMode = true
    productionMode = true
    }
    vaadin.autoconfigure()
  2. Create demo app by run gradle vaadinCreateProject --name MyProject --package com.example
  3. Run Gradle task 'vaadinAssembleClient'
  4. See error
    
    Execution failed for task ':vaadinTranspileDependencies'.
    > No signature of method: java.util.LinkedHashMap.fineach() is applicable for argument types: (com.devsoap.vaadinflow.tasks.TranspileDependenciesTask$_checkJsModulesInCompatibilityMode_closure37) values: [com.devsoap.vaadinflow.tasks.TranspileDependenciesTask$_checkJsModulesInCompatibilityMode_closure37@434d7042]
    Possible solutions: forEach(java.util.function.BiConsumer), forEach(java.util.function.BiConsumer), findAll(), each(groovy.lang.Closure), each(groovy.lang.Closure), find()

Expected behavior Client is assembled correctly and supports legacy browsers by transpiling the sources to ES5