Skip to content
This repository has been archived by the owner on Apr 2, 2021. It is now read-only.

Commit

Permalink
Allow configuring what GWT version is used with Vaadin 6 #11
Browse files Browse the repository at this point in the history
  • Loading branch information
johndevs committed Feb 3, 2013
1 parent 57745ce commit e4540f4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/groovy/fi/jasoft/plugin/DependencyListener.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,13 @@ class DependencyListener implements ProjectEvaluationListener{
def jettyVersion = "8.1.5.v20120716"
project.dependencies.add('jetty8', "org.mortbay.jetty:jetty-runner:$jettyVersion")

def version = project.vaadin.version;
def version = project.vaadin.version
def gwtVersion = project.vaadin.gwt.version
if(version.startsWith("6")){
project.dependencies.add("vaadin", "com.vaadin:vaadin:"+version)
if(project.vaadin.widgetset != null){
project.dependencies.add("gwt", "com.google.gwt:gwt-user:2.3.0")
project.dependencies.add("gwt", "com.google.gwt:gwt-dev:2.3.0")
project.dependencies.add("gwt", "com.google.gwt:gwt-user:"+gwtVersion)
project.dependencies.add("gwt", "com.google.gwt:gwt-dev:"+gwtVersion)
project.dependencies.add("gwt", "javax.validation:validation-api:1.0.0.GA")
project.dependencies.add("gwt", "javax.validation:validation-api:1.0.0.GA:sources")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class VaadinPluginExtension{
boolean strict = false
String userAgent = "ie8,ie9,gecko1_8,safari,opera"
String[] jvmArgs = null
String version = "2.3"
}

// DevMode
Expand Down

0 comments on commit e4540f4

Please sign in to comment.