From 65220e4794875bd8cab96423903314fe4db74996 Mon Sep 17 00:00:00 2001 From: Denis Date: Mon, 4 Oct 2021 16:07:07 +0300 Subject: [PATCH] chore: avoid repackaging of google elemental dep and use it directly (#12416) * chore: avoid repackaging of google elemental dep and use it directly The google elemental dependency is not OSGi compatible so it's repackaged into shared module to use it directly from there. But there is a custom Vaadin version of google elemental dep and it's OSGi compatible. Flow uses this version and to be able to use FW in MPR the versions should match. So the Vaadin google elemental dep is added instead of repackaging. * chore: import elemental package in the bnd file --- shared/bnd.bnd | 5 ++--- shared/pom.xml | 57 ++++++-------------------------------------------- 2 files changed, 8 insertions(+), 54 deletions(-) diff --git a/shared/bnd.bnd b/shared/bnd.bnd index 56b69fdfd0..93e05116cf 100644 --- a/shared/bnd.bnd +++ b/shared/bnd.bnd @@ -3,7 +3,6 @@ Bundle-Activator: com.vaadin.osgi.resources.OsgiVaadinResources Bundle-Name: Vaadin Shared Bundle-RequiredExecutionEnvironment: JavaSE-1.8 Bundle-License: http://www.apache.org/licenses/LICENSE-2.0 -Import-Package: org.osgi* +Import-Package: org.osgi*, elemental.json* Export-Package: com.vaadin.osgi.resources;-noimport:=true,\ - com.vaadin.shared*;-noimport:=true,\ - elemental.json*;-noimport:=true + com.vaadin.shared*;-noimport:=tru diff --git a/shared/pom.xml b/shared/pom.xml index f1cc50af0f..af30d3af2a 100644 --- a/shared/pom.xml +++ b/shared/pom.xml @@ -33,6 +33,12 @@ org.osgi osgi.cmpn + + + com.vaadin.external.gwt + gwt-elemental + 2.8.2.vaadin2 + @@ -51,57 +57,6 @@ - - - org.apache.maven.plugins - maven-dependency-plugin - - - unpack-dependencies - generate-resources - - unpack - - - - - com.google.gwt - gwt-elemental - - elemental/json/**, - elemental/util/Array*, - elemental/util/Can*, - elemental/util/Map* - - - - - - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - - - add-source-path - generate-sources - - add-source - - - - ${dependency.unpack.directory} - - - - - - maven-resources-plugin -- 2.39.5