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

Lisence #243

Closed alabotski closed 4 years ago

alabotski commented 5 years ago

I try to build a gradle project and constantly get a license error

The same project with maven builds and works fine.

license.png

More info https://vaadin.com/forum/thread/17632445/license

NotifierMan commented 5 years ago

I had the same issue using vaadin.autoconfigure(). The problem is that vaadin.autoconfigure() adds platform() as a compile dependency.

Platform contains everything, including commercial components sold by Vaadin Ltd. Platform also will include Core so you do not need to add it separately.

https://docs.devsoap.com/vaadin_flow_gradle_plugin_dependency_management/dependencies.html

To solve this I removed vaadin.autoconfigure() from the build.gradle and added the following dependencies:

dependencies {
  compile vaadin.bom()
  compile vaadin.core()
  compile vaadin.materialTheme() // replace with "compile vaadin.lumoTheme()" if you want to use this one
  compile vaadin.dependency('icons:3.0.2')
}
johndevs commented 4 years ago

autoconfigure() was changed to only add core() as a dependency in 1.3.

Anyway, how you have done it is the correct way to do it manually :+1: