From 2baccb67668b8a4192907b546b9f85f965e29bcc Mon Sep 17 00:00:00 2001 From: Manolo Carrasco Date: Mon, 24 Apr 2017 22:45:18 +0200 Subject: [PATCH] Use GWT 2.8.0 and net.ltgt maven plugin in archetype --- archetype/pom.xml | 2 +- .../resources/archetype-resources/pom.xml | 140 ++++++------------ .../__projectName__.gwt.xml | 2 +- .../client/__projectName__.java | 2 +- .../public/__projectName__.html | 0 .../client/__projectName__Test.java | 4 +- 6 files changed, 53 insertions(+), 97 deletions(-) rename archetype/src/main/resources/archetype-resources/src/main/java/{__artifactId__ => }/__projectName__.gwt.xml (71%) rename archetype/src/main/resources/archetype-resources/src/main/java/{__artifactId__ => }/client/__projectName__.java (94%) rename archetype/src/main/resources/archetype-resources/src/main/java/{__artifactId__ => }/public/__projectName__.html (100%) 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/__projectName__.gwt.xml similarity index 71% rename from archetype/src/main/resources/archetype-resources/src/main/java/__artifactId__/__projectName__.gwt.xml rename to archetype/src/main/resources/archetype-resources/src/main/java/__projectName__.gwt.xml index 13e1d579..063e7a96 100644 --- a/archetype/src/main/resources/archetype-resources/src/main/java/__artifactId__/__projectName__.gwt.xml +++ b/archetype/src/main/resources/archetype-resources/src/main/java/__projectName__.gwt.xml @@ -3,6 +3,6 @@ #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/client/__projectName__.java similarity index 94% rename from archetype/src/main/resources/archetype-resources/src/main/java/__artifactId__/client/__projectName__.java rename to archetype/src/main/resources/archetype-resources/src/main/java/client/__projectName__.java index d5c178e8..32be2115 100644 --- a/archetype/src/main/resources/archetype-resources/src/main/java/__artifactId__/client/__projectName__.java +++ b/archetype/src/main/resources/archetype-resources/src/main/java/client/__projectName__.java @@ -1,7 +1,7 @@ #set( $symbol_pound = '#' ) #set( $symbol_dollar = '$' ) #set( $symbol_escape = '\' ) -package ${package}.${artifactId}.client; +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.*; 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/public/__projectName__.html similarity index 100% rename from archetype/src/main/resources/archetype-resources/src/main/java/__artifactId__/public/__projectName__.html rename to archetype/src/main/resources/archetype-resources/src/main/java/public/__projectName__.html 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) { -- 2.39.5