-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use JsType+Global.JSON instead AutoBean and fix gwt-maven-plugin #13
Conversation
… configuration Version rc-7 requires type:gwt-lib to correctly configure dependencies using devmode goal.
@@ -41,6 +41,7 @@ | |||
<dependency> | |||
<groupId>org.jboss.gwt.elemento</groupId> | |||
<artifactId>elemento-core</artifactId> | |||
<type>gwt-lib</type> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not required, but as you are defining the version in the parent pom, this makes this version used by this dependency. You can instead remove the type and use ${project.version}.
@@ -102,6 +102,7 @@ | |||
<groupId>org.jboss.gwt.elemento</groupId> | |||
<artifactId>elemento-core</artifactId> | |||
<version>${project.version}</version> | |||
<type>gwt-lib</type> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this fixes devmode... see tbroyer/gwt-maven-plugin#86
<plugin> | ||
<groupId>net.ltgt.gwt.maven</groupId> | ||
<artifactId>gwt-maven-plugin</artifactId> | ||
<inherited>false</inherited> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not inherited! this is only used during development to run devmode.
+1 @ibaca. Replacing AutoBean with JsType+Global.JSON is great idea. |
Uhm, I'm going to split this PR in 2, 1.for autobean and another to the plugin, because the plugin configuration is no very IDE friendly, and because I just see that you use develop branch instead of master branch. |
Version rc-7 requires type:gwt-lib to correctly configure dependencies using devmode goal. And also, I have added a gwt maven plugin configuration to the root pom, I'm not sure how you are using devmode right now, but I think that you need to install before you can use it, isn't it? Now you can just use gwt:devmode in the root module and it just loads 3 examples at the same time.
I'm not sure if you really want to use AutoBean on purpose, but I think that if you are using elemental2 hehe you better do it all without "old gwt" magic. Using JsType+Global.JSON is the new AutoBean 😛.