From: Manolo Carrasco Date: Mon, 24 Apr 2017 20:45:18 +0000 (+0200) Subject: Use GWT 2.8.0 and net.ltgt maven plugin in archetype X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2baccb67668b8a4192907b546b9f85f965e29bcc;p=gwtquery.git Use GWT 2.8.0 and net.ltgt maven plugin in archetype --- diff --git a/archetype/pom.xml b/archetype/pom.xml index 4d4b8cdb..9255f189 100644 --- a/archetype/pom.xml +++ b/archetype/pom.xml @@ -14,7 +14,7 @@ 3 - This archetype generates a GWT-2.6.1 project with all set to use GwtQuery and its plugins. + This archetype generates a GWT project with all set to use GwtQuery and its plugins. scm:git:https://code.google.com/p/gwtquery/ diff --git a/archetype/src/main/resources/archetype-resources/pom.xml b/archetype/src/main/resources/archetype-resources/pom.xml index d92dd68b..1557e72e 100644 --- a/archetype/src/main/resources/archetype-resources/pom.xml +++ b/archetype/src/main/resources/archetype-resources/pom.xml @@ -10,11 +10,11 @@ UTF-8 - 1.7 - 1.7 - 1.4.3-SNAPSHOT - 2.6.1 - 2.6.1 + 1.8 + 1.8 + 1.5-SNAPSHOT + 2.8.0 + 2.8.0 @@ -44,29 +44,38 @@ + + + + com.google.gwt + gwt + ${gwtversion} + pom + import + + + + junit junit - 3.8.1 + 4.11 test com.google.gwt gwt-user - ${gwtversion} provided com.google.gwt gwt-dev - ${gwtversion} provided com.google.gwt gwt-servlet - ${gwtversion} runtime @@ -75,100 +84,47 @@ ${gQueryVersion} provided - - - javax.validation - validation-api - 1.0.0.GA - - - javax.validation - validation-api - 1.0.0.GA - sources - - org.apache.maven.plugins - maven-compiler-plugin - 2.1 + net.ltgt.gwt.maven + gwt-maven-plugin + 1.0-rc-6 + + + + import-sources + compile + import-test-sources + test + + + - 1.6 - 1.6 + ${package}.${projectName} + ${projectName} + true + 1.8 + + -compileReport + -XcompilerMetrics + + ${project.build.directory}/${project.build.finalName} + compile+runtime + + ${projectName}/${projectName}.html + + - org.codehaus.mojo - gwt-maven-plugin - ${gwtmaven} - - ${gwt.loglevel} - - ${gwtversion} - true - ${projectName}/${projectName}.html - ${project.build.directory}/${project.build.finalName} - - - - prepare-package - - compile - - - - - - maven-surefire-plugin - 2.8.1 - - - \${project.build.sourceDirectory} - \${project.build.testSourceDirectory} - - false - always - - - gwt.args - -out target/gwt-tests - - - - gwt.persistentunitcache - false - - - - - - org.apache.maven.plugins - maven-eclipse-plugin - 2.7 + maven-surefire-plugin + 2.17 - true - false - - com.google.gwt.eclipse.core.gwtProjectValidator - org.eclipse.wst.common.modulecore.ComponentStructuralBuilder - org.eclipse.jdt.core.javabuilder - org.eclipse.wst.common.modulecore.ComponentStructuralBuilderDependencyResolver - - - com.google.gwt.eclipse.core.gwtNature - org.eclipse.jdt.core.javanature - org.eclipse.wst.common.modulecore.ModuleCoreNature - - - com.google.gwt.eclipse.core.GWT_CONTAINER - org.eclipse.jdt.launching.JRE_CONTAINER - org.eclipse.jdt.junit.JUNIT_CONTAINER/3 - + true - maven-resources-plugin 2.5 diff --git a/archetype/src/main/resources/archetype-resources/src/main/java/__artifactId__/__projectName__.gwt.xml b/archetype/src/main/resources/archetype-resources/src/main/java/__artifactId__/__projectName__.gwt.xml deleted file mode 100644 index 13e1d579..00000000 --- a/archetype/src/main/resources/archetype-resources/src/main/java/__artifactId__/__projectName__.gwt.xml +++ /dev/null @@ -1,8 +0,0 @@ -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) - - - - - diff --git a/archetype/src/main/resources/archetype-resources/src/main/java/__artifactId__/client/__projectName__.java b/archetype/src/main/resources/archetype-resources/src/main/java/__artifactId__/client/__projectName__.java deleted file mode 100644 index d5c178e8..00000000 --- a/archetype/src/main/resources/archetype-resources/src/main/java/__artifactId__/client/__projectName__.java +++ /dev/null @@ -1,31 +0,0 @@ -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) -package ${package}.${artifactId}.client; -import com.google.gwt.dom.client.Element; -import com.google.gwt.query.client.Function; -import static com.google.gwt.query.client.GQuery.*; - - -import com.google.gwt.core.client.EntryPoint; - -/** - * Example code for a GwtQuery application - */ -public class ${projectName} implements EntryPoint { - - public void onModuleLoad() { - - ${symbol_dollar}("div") - .hover(new Function() { - public void f(Element e) { - ${symbol_dollar}(e).css("color", "blue").stop(true, true).animate("fontSize: '+=10px'"); - } - }, new Function() { - public void f(Element e) { - ${symbol_dollar}(e).css("color", "").stop(true, true).animate("fontSize: '-=10px'"); - } - }); - } - -} diff --git a/archetype/src/main/resources/archetype-resources/src/main/java/__artifactId__/public/__projectName__.html b/archetype/src/main/resources/archetype-resources/src/main/java/__artifactId__/public/__projectName__.html deleted file mode 100644 index 6caf14bf..00000000 --- a/archetype/src/main/resources/archetype-resources/src/main/java/__artifactId__/public/__projectName__.html +++ /dev/null @@ -1,16 +0,0 @@ -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) - - - - -GwtQuery: ${projectName} plugin example - - - - -
Hello world
- - diff --git a/archetype/src/main/resources/archetype-resources/src/main/java/__projectName__.gwt.xml b/archetype/src/main/resources/archetype-resources/src/main/java/__projectName__.gwt.xml new file mode 100644 index 00000000..063e7a96 --- /dev/null +++ b/archetype/src/main/resources/archetype-resources/src/main/java/__projectName__.gwt.xml @@ -0,0 +1,8 @@ +#set( $symbol_pound = '#' ) +#set( $symbol_dollar = '$' ) +#set( $symbol_escape = '\' ) + + + + + diff --git a/archetype/src/main/resources/archetype-resources/src/main/java/client/__projectName__.java b/archetype/src/main/resources/archetype-resources/src/main/java/client/__projectName__.java new file mode 100644 index 00000000..32be2115 --- /dev/null +++ b/archetype/src/main/resources/archetype-resources/src/main/java/client/__projectName__.java @@ -0,0 +1,31 @@ +#set( $symbol_pound = '#' ) +#set( $symbol_dollar = '$' ) +#set( $symbol_escape = '\' ) +package ${package}.client; +import com.google.gwt.dom.client.Element; +import com.google.gwt.query.client.Function; +import static com.google.gwt.query.client.GQuery.*; + + +import com.google.gwt.core.client.EntryPoint; + +/** + * Example code for a GwtQuery application + */ +public class ${projectName} implements EntryPoint { + + public void onModuleLoad() { + + ${symbol_dollar}("div") + .hover(new Function() { + public void f(Element e) { + ${symbol_dollar}(e).css("color", "blue").stop(true, true).animate("fontSize: '+=10px'"); + } + }, new Function() { + public void f(Element e) { + ${symbol_dollar}(e).css("color", "").stop(true, true).animate("fontSize: '-=10px'"); + } + }); + } + +} diff --git a/archetype/src/main/resources/archetype-resources/src/main/java/public/__projectName__.html b/archetype/src/main/resources/archetype-resources/src/main/java/public/__projectName__.html new file mode 100644 index 00000000..6caf14bf --- /dev/null +++ b/archetype/src/main/resources/archetype-resources/src/main/java/public/__projectName__.html @@ -0,0 +1,16 @@ +#set( $symbol_pound = '#' ) +#set( $symbol_dollar = '$' ) +#set( $symbol_escape = '\' ) + + + + +GwtQuery: ${projectName} plugin example + + + + +
Hello world
+ + diff --git a/archetype/src/main/resources/archetype-resources/src/test/java/__artifactId__/client/__projectName__Test.java b/archetype/src/main/resources/archetype-resources/src/test/java/__artifactId__/client/__projectName__Test.java index e007a0a6..a2d64b9b 100644 --- a/archetype/src/main/resources/archetype-resources/src/test/java/__artifactId__/client/__projectName__Test.java +++ b/archetype/src/main/resources/archetype-resources/src/test/java/__artifactId__/client/__projectName__Test.java @@ -1,7 +1,7 @@ #set( $symbol_pound = '#' ) #set( $symbol_dollar = '$' ) #set( $symbol_escape = '\' ) -package ${package}.${artifactId}.client; +package ${package}.client; import static com.google.gwt.query.client.GQuery.*; import com.google.gwt.junit.client.GWTTestCase; @@ -15,7 +15,7 @@ import com.google.gwt.user.client.Timer; public class ${projectName}Test extends GWTTestCase { public String getModuleName() { - return "${package}.${artifactId}.${projectName}"; + return "${package}.${projectName}"; } private double fontSize(GQuery g) {