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

ProductionMode is not workind with Gradle 6 and Vaadin 13 #314

Closed fseregin closed 4 years ago

fseregin commented 4 years ago

Desktop (please complete the following information):

Describe the bug After add 'vaadin.productionMode = true' into the build.gradle I see an exception:

Task :vaadinTranspileDependencies FAILED FAILURE: Build failed with an exception.

What went wrong: Execution failed for task ':vaadinTranspileDependencies'.

No signature of method: static org.gradle.util.GFileUtils.deleteFileQuietly() is applicable for argument types: (File) values: [C:\proj\build\frontend\comboBoxConnector.js]

To Reproduce Steps to reproduce the behavior:

  1. Create test project using this build.gradle:
plugins {
    id 'com.devsoap.vaadin-flow' version '1.3.1'
}

devsoap {
        email = '***@***.com'
        key = '***'
}

vaadin {
    version = '13.0.13'
    vaadin.productionMode = true
    compatibilityMode = true
}

vaadin.autoconfigure()

repositories.whenObjectAdded {
    if (it instanceof IvyArtifactRepository) {
        metadataSources {
            artifact()
            ivyDescriptor()
        }
    }
}

and run 'gradle vaadinCreateProject --name proj --package com.example'

  1. Run Gradle task 'gradle :vaadinTranspileDependencies --stacktrace'
  2. See error
    
    > Task :vaadinTranspileDependencies FAILED

FAILURE: Build failed with an exception.



**Expected behavior**
BUILD SUCESSFUL.

**Additional context**
The same bahaviour if I use plugin version 1.2. 
The same behaviour on Windows 10 and on Ubuntu 18.04.
fseregin commented 4 years ago

Could you please fix the same issue in version 1.1.2. or it will be better to create separate ticket?

We use version 1.1.2 now and it works fine with Gradle 5.2.1, but with Gradle 6.0.1 we have the same bug if production mode is enabled.

p.s. version 1.2 has the same issue.

johndevs commented 4 years ago

Version 1.1 and 1.2 are not compatible with Gradle 6. If you need Gradle 6 support you will need to update to version 1.3.3 of the plugin.