]> source.dussan.org Git - vaadin-framework.git/commitdiff
Use gwt-user and gwt-dev dependencies in client and compiler feature/standard-gwt
authorTeemu Suo-Anttila <teemusa@vaadin.com>
Mon, 2 May 2016 11:30:42 +0000 (14:30 +0300)
committerVaadin Code Review <review@vaadin.com>
Thu, 5 May 2016 06:21:55 +0000 (06:21 +0000)
This removes GWT dependency from the server and shared parts of the framework.

Change-Id: I66755e8fb058eca924a6551a38ca588de8bf0996

client-compiler/pom.xml
client/pom.xml
server/pom.xml
shared/pom.xml
uitest/pom.xml

index f97b85fd517680e4d7b0698819f8ab7935c2f302..1ed091c0826e5237bf5c56e292c297ad1ede5ac6 100644 (file)
                        <artifactId>ant-launcher</artifactId>
                        <version>1.6.5</version>
                </dependency>
-               <dependency>
-                       <groupId>org.ow2.asm</groupId>
-                       <artifactId>asm</artifactId>
-                       <version>5.0.3</version>
-               </dependency>
-               <dependency>
-                       <groupId>org.ow2.asm</groupId>
-                       <artifactId>asm-util</artifactId>
-                       <version>5.0.3</version>
-               </dependency>
-               <dependency>
-                       <groupId>org.ow2.asm</groupId>
-                       <artifactId>asm-commons</artifactId>
-                       <version>5.0.3</version>
-               </dependency>
                <dependency>
                        <groupId>org.eclipse.jetty</groupId>
                        <artifactId>jetty-annotations</artifactId>
                        <groupId>com.vaadin.external.gwt</groupId>
                        <artifactId>gwt-dev</artifactId>
                        <version>${vaadin.gwt.version}</version>
-                       <scope>provided</scope>
                </dependency>
 
                <dependency>
                </resources>
 
                <plugins>
-                       <plugin>
-                               <groupId>org.apache.maven.plugins</groupId>
-                               <artifactId>maven-dependency-plugin</artifactId>
-                               <executions>
-                                       <execution>
-                                               <id>unpack-dependencies</id>
-                                               <phase>generate-resources</phase>
-                                               <goals>
-                                                       <goal>unpack</goal>
-                                               </goals>
-                                               <configuration>
-                                                       <artifactItems>
-                                                               <artifactItem>
-                                                                       <groupId>com.vaadin.external.gwt</groupId>
-                                                                       <artifactId>gwt-dev</artifactId>
-                                                                       <includes>
-                                                                               about_files/**,
-                                                                               com/google/gwt/core/**,
-                                                                               com/google/gwt/dev/**,
-                                                                               com/google/gwt/lang/**,
-                                                                               com/google/gwt/soyc/**,
-                                                                               com/google/gwt/thirdparty/json/**,
-                                                                               com/google/gwt/util/**,
-                                                                               license/LICENSE.sax.txt,
-                                                                               netscape/**,
-                                                                               org/apache/COPYING,
-                                                                               org/apache/jasper/**,
-                                                                               org/apache/commons/el/**,
-                                                                               org/apache/commons/lang3/**,
-                                                                               templates/*,
-                                                                               about.html,
-                                                                               jetty-dir.css,
-                                                                               plugin.properties
-                                                                       </includes>
-                                                                       <excludes>
-                                                                               com/google/gwt/dev/protobuf/**,
-                                                                               com/google/gwt/dev/About.properties
-                                                                       </excludes>
-                                                               </artifactItem>
-                                                       </artifactItems>
-                                               </configuration>
-                                       </execution>
-                               </executions>
-                       </plugin>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-checkstyle-plugin</artifactId>
                                <configuration>
                                        <instructions>
                                                <Bundle-RequiredExecutionEnvironment>JavaSE-1.6</Bundle-RequiredExecutionEnvironment>
-                                               <Export-Package>com.vaadin.*;version="${project.version}",com.google.gwt.*;version="${project.version}"</Export-Package>
+                                               <Export-Package>com.vaadin.*;version="${project.version}"</Export-Package>
                                                <!--TODO decide gwt packages version number<Export-Package>com.vaadin.*;version="${project.version}",com.google.gwt.*;version="${vaadin.gwt.version}"</Export-Package> -->
                                                <Import-Package></Import-Package> <!--todo find out what should be in Import-Package -->
                                        </instructions>
index 8a80b3ddbb530e5a1799a01f214977358ea0fd3f..87a6e93d5324063ee76e56dcb095df113fe864d6 100644 (file)
                        </exclusions>
                </dependency>
 
-               <!-- gwt-user dependencies -->
-               <dependency>
-                       <groupId>org.w3c.css</groupId>
-                       <artifactId>sac</artifactId>
-                       <version>1.3</version>
-               </dependency>
-
-               <!-- Bean Validation API -->
-               <dependency>
-                       <groupId>javax.validation</groupId>
-                       <artifactId>validation-api</artifactId>
-                       <version>${javax.validation.version}</version>
-                       <scope>provided</scope>
-               </dependency>
-
-               <dependency>
-                       <groupId>javax.validation</groupId>
-                       <artifactId>validation-api</artifactId>
-                       <version>${javax.validation.version}</version>
-                       <classifier>sources</classifier>
-               </dependency>
-
                <!-- Testing dependencies -->
                <dependency>
                        <groupId>junit</groupId>
                </dependency>
 
                <!-- Needed GWT dependencies. Required parts are packaged to jar -->
-               <dependency>
-                       <groupId>com.vaadin.external.gwt</groupId>
-                       <artifactId>gwt-user</artifactId>
-                       <version>${vaadin.gwt.version}</version>
-                       <scope>provided</scope>
-               </dependency>
                <dependency>
                        <groupId>com.vaadin.external.gwt</groupId>
                        <artifactId>gwt-elemental</artifactId>
                        <version>${vaadin.gwt.version}</version>
-                       <scope>provided</scope>
                </dependency>
        </dependencies>
 
        <build>
                <plugins>
-
-                       <!-- Copy needed GWT dependencies to package -->
-                       <plugin>
-                               <groupId>org.apache.maven.plugins</groupId>
-                               <artifactId>maven-dependency-plugin</artifactId>
-                               <executions>
-                                       <execution>
-                                               <id>unpack-dependencies</id>
-                                               <phase>generate-resources</phase>
-                                               <goals>
-                                                       <goal>unpack</goal>
-                                               </goals>
-                                               <configuration>
-                                                       <artifactItems>
-                                                               <artifactItem>
-                                                                       <groupId>com.vaadin.external.gwt</groupId>
-                                                                       <artifactId>gwt-user</artifactId>
-                                                                       <excludes>
-                                                                               META-INF/**,
-                                                                               **/*.gwtar,
-                                                                               com/google/gwt/*/server/**,
-                                                                               com/google/gwt/*/shared/**,
-                                                                               com/google/gwt/*/*/shared/**,
-                                                                               com/google/web/bindery/*/shared/**,
-                                                                               com/google/gwt/user/client/rpc/IsSerializable.*,
-                                                                               com/google/gwt/thirdparty/streamhtmlparser/**,
-                                                                               org/w3c/**,
-                                                                               javax/servlet/**
-                                                                       </excludes>
-                                                               </artifactItem>
-                                                               <artifactItem>
-                                                                       <groupId>com.vaadin.external.gwt</groupId>
-                                                                       <artifactId>gwt-elemental</artifactId>
-                                                                       <excludes>META-INF/**</excludes>
-                                                               </artifactItem>
-                                                       </artifactItems>
-                                               </configuration>
-                                       </execution>
-                               </executions>
-                       </plugin>
-
-
                        <plugin>
                                <artifactId>maven-resources-plugin</artifactId>
                                <executions>
                                <configuration>
                                        <instructions>
                                                <Bundle-RequiredExecutionEnvironment>JavaSE-1.6</Bundle-RequiredExecutionEnvironment>
-                                               <Export-Package>com.vaadin.*;version="${project.version}",com.google.*;version="${project.version}"</Export-Package>
+                                               <Export-Package>com.vaadin.*;version="${project.version}"</Export-Package>
                                                <Import-Package></Import-Package>
                                        </instructions>
                                </configuration>
index 92ed9c2713ada3c88b4a00247f466816b87e4fc7..67b77d52946dc58e25d5ebd74f31eed8d307adf5 100644 (file)
 
                <!-- For manual testing with PostgreSQL (see SQLTestConstants) -->
                <!-- <dependency><groupId>postgresql</groupId><artifactId>postgresql</artifactId><version>9.1-901.jdbc3</version></dependency> -->
-
-               <!-- Needed GWT dependencies. Required parts are packaged to jar -->
-               <dependency>
-                       <groupId>com.vaadin.external.gwt</groupId>
-                       <artifactId>gwt-user</artifactId>
-                       <version>${vaadin.gwt.version}</version>
-                       <scope>provided</scope>
-               </dependency>
-               <dependency>
-                       <groupId>com.vaadin.external.gwt</groupId>
-                       <artifactId>gwt-elemental</artifactId>
-                       <version>${vaadin.gwt.version}</version>
-                       <scope>provided</scope>
-               </dependency>
        </dependencies>
 
        <build>
                <plugins>
-                       <!-- Copy needed GWT dependencies to package -->
-                       <plugin>
-                               <groupId>org.apache.maven.plugins</groupId>
-                               <artifactId>maven-dependency-plugin</artifactId>
-                               <executions>
-                                       <execution>
-                                               <id>unpack-dependencies</id>
-                                               <phase>generate-resources</phase>
-                                               <goals>
-                                                       <goal>unpack</goal>
-                                               </goals>
-                                               <configuration>
-                                                       <artifactItems>
-                                                               <artifactItem>
-                                                                       <groupId>com.vaadin.external.gwt</groupId>
-                                                                       <artifactId>gwt-user</artifactId>
-                                                               </artifactItem>
-                                                       </artifactItems>
-                                                       <includes>com/google/gwt/*/server/**</includes>
-                                               </configuration>
-                                       </execution>
-                               </executions>
-                       </plugin>
-
-
                        <plugin>
                                <artifactId>maven-resources-plugin</artifactId>
                                <executions>
                                <configuration>
                                        <instructions>
                                                <Bundle-RequiredExecutionEnvironment>JavaSE-1.6</Bundle-RequiredExecutionEnvironment>
-                                               <Export-Package>com.vaadin.*;version="${project.version}",com.google.*;version="${project.version}"</Export-Package>
+                                               <Export-Package>com.vaadin.*;version="${project.version}"</Export-Package>
                                                <Import-Package>javax.servlet;version="${javax.servlet.version}",
                                                        javax.servlet.http;version="${javax.servlet.version}",
                                                        javax.validation;version="${javax.validation.version}";resolution:=optional,
index 8706e45f703fb161fd6ff0f9fc5b9cad96ea63d4..691978cfa2453d6a933a7758ad509c06800c1346 100644 (file)
        <description>Vaadin shared</description>
 
        <dependencies>
-               <!-- Actual dependencies -->
-               <dependency>
-                       <groupId>com.vaadin.external.flute</groupId>
-                       <artifactId>flute</artifactId>
-                       <version>${flute.version}</version>
-               </dependency>
-               <dependency>
-                       <groupId>com.vaadin.external.streamhtmlparser</groupId>
-                       <artifactId>streamhtmlparser-jsilver</artifactId>
-                       <version>${streamhtmlparser.version}</version>
-               </dependency>
+               <!-- <dependency>
+                       <groupId>com.vaadin.external.gwt</groupId>
+                       <artifactId>gwt-servlet</artifactId>
+                       <version>${vaadin.gwt.version}</version>
+               </dependency> -->
                <dependency>
                        <groupId>com.vaadin.external.google</groupId>
                        <artifactId>guava</artifactId>
                        <version>${guava.version}</version>
                </dependency>
-
-               <!-- Needed GWT dependencies. Required parts are packaged to jar -->
                <dependency>
                        <groupId>com.vaadin.external.gwt</groupId>
                        <artifactId>gwt-elemental</artifactId>
                        <version>${vaadin.gwt.version}</version>
                        <scope>provided</scope>
                </dependency>
-               <dependency>
-                       <groupId>com.vaadin.external.gwt</groupId>
-                       <artifactId>gwt-user</artifactId>
-                       <version>${vaadin.gwt.version}</version>
-                       <scope>provided</scope>
-               </dependency>
 
                <dependency>
                        <groupId>junit</groupId>
                                                                                elemental/util/Map*
                                                                        </includes>
                                                                </artifactItem>
-                                                               <artifactItem>
-                                                                       <groupId>com.vaadin.external.gwt</groupId>
-                                                                       <artifactId>gwt-user</artifactId>
-                                                                       <includes>
-                                                                               com/google/gwt/*/shared/**,
-                                                                               com/google/gwt/*/*/shared/**,
-                                                                               com/google/web/bindery/*/shared/**,
-                                                                               com/google/gwt/user/client/rpc/IsSerializable.*
-                                                                       </includes>
-                                                               </artifactItem>
                                                        </artifactItems>
                                                </configuration>
                                        </execution>
                                </executions>
                        </plugin>
+                       
 
                        <plugin>
                                <artifactId>maven-resources-plugin</artifactId>
                                <configuration>
                                        <instructions>
                                                <Bundle-RequiredExecutionEnvironment>JavaSE-1.6</Bundle-RequiredExecutionEnvironment>
-                                               <Export-Package>com.vaadin.*;version="${project.version}",com.google.*;version="${project.version}",elemental.*;version="${project.version}"</Export-Package>
+                                               <Export-Package>com.vaadin.*;version="${project.version}",elemental.*;version="${project.version}"</Export-Package>
                                                <Import-Package>com.google.gwt.thirdparty.streamhtmlparser;version="${streamhtmlparser.version}",
                                                        com.google.gwt.thirdparty.streamhtmlparser.impl;version="${streamhtmlparser.version}",
                                                        com.google.gwt.thirdparty.streamhtmlparser.util;version="${streamhtmlparser.version}",
index 8b87953f7d32959eea91683ecc2003d5bd316217..fe905ed8e90d3f119b6e2246d3453e2d2406b146 100644 (file)
@@ -67,6 +67,7 @@
                                </exclusion>
                        </exclusions>
                </dependency>
+
                <dependency>
                        <groupId>com.vaadin</groupId>
                        <artifactId>vaadin-client</artifactId>
                                </exclusion>
                        </exclusions>
                </dependency>
+
+               <dependency>
+                       <groupId>com.vaadin.external.gwt</groupId>
+                       <artifactId>gwt-elemental</artifactId>
+                       <version>${vaadin.gwt.version}</version>
+                       <scope>provided</scope>
+               </dependency>
+               <dependency>
+                       <groupId>com.vaadin.external.gwt</groupId>
+                       <artifactId>gwt-servlet</artifactId>
+                       <version>${vaadin.gwt.version}</version>
+               </dependency>
+
                <dependency>
                        <groupId>com.vaadin</groupId>
                        <artifactId>vaadin-client-compiled</artifactId>
                        <groupId>com.vaadin</groupId>
                        <artifactId>vaadin-testbench</artifactId>
                        <version>4.0.3</version>
-            <scope>test</scope>
+                       <scope>test</scope>
                </dependency>
                <!-- This should be removed once tests have been updated to use lang3 -->
                <dependency>