Getting a massive error message when attempting to build widgetsets. I had this build working with an earlier buildscript modeled after the one from your blog post, so I know that it can work. It just fails when I try using the plugin.
Here is my build.gradle. I'm keeping widgets in src/main/resources.
apply plugin: "scala"
compileScala.scalaCompileOptions.useAnt = false
project.ext.scalaVersion = "2.9.2"
apply from: 'http://plugins.jasoft.fi/vaadin.plugin'
vaadin.version = "6.8.7"
vaadin.widgetset = "code.MainWidgetset"
repositories {
mavenCentral()
mavenLocal()
maven { url "https://oss.sonatype.org/content/repositories/public/" }
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
maven { url "http://repo.typesafe.com/typesafe/releases/" }
maven { url "http://download.java.net/maven/2/" }
maven { url "https://repository.apache.org/content/repositories/" }
ivy {
url System.getProperty("user.home")+"/.ivy2/local"
layout "pattern", {
artifact "[organization]/[module]/[revision]/[artifact].[ext]"
ivy "[organization]/[module]/[revision]/ivys/ivy.xml"
}
}
}
project.ext.shiroVersion = "1.2.1"
configurations.all {
resolutionStrategy {
force "com.vaadin:vaadin:$vaadin.version"
}
}
dependencies {
scalaTools "org.scala-lang:scala-compiler:$scalaVersion"
scalaTools "org.scala-lang:scala-library:$scalaVersion"
compile([
"org.scala-lang:scala-library:$scalaVersion",
"org.vaadin.addons:scaladin:2.1.0",
"org.vaadin:dontpush-addon-ozonelayer:1.0.4",
"org.apache.shiro:shiro-core:$shiroVersion",
"org.apache.shiro:shiro-web:$shiroVersion",
"ch.qos.logback:logback-classic:1.0.6",
"com.typesafe:config:1.0.0",
"com.typesafe.akka:akka-actor:2.0.5",
"com.novus:salat-core_$scalaVersion:1.9.2-SNAPSHOT",
"org.mindrot:jbcrypt:0.3m"
])
}
task wrapper(type: Wrapper)
defaultTasks "build"
And the error:
:compileJava UP-TO-DATE
:compileScala UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:themes
SASS themes are not compatible with Vaadin 6.
:widgetset
Compiling module code.MainWidgetset
Scanning for additional dependencies: jar:file:/home/nolan/.gradle/caches/artifacts-15/filestore/com.vaadin/vaadin/6.8.7/jar/581d6f629c436190b7ddaeec39ffcc0906ae65dc/vaadin-6.8.7.jar!/com/vaadin/terminal/gwt/client/WidgetSet.java
Computing all possible rebind results for 'com.vaadin.terminal.gwt.client.WidgetMap'
Rebinding com.vaadin.terminal.gwt.client.WidgetMap
Invoking generator com.vaadin.terminal.gwt.widgetsetutils.EagerWidgetMapGenerator
Detecting Vaadin components in classpath to generate WidgetMapImpl.java ...
Widget set will contain implementations for following components:
com.vaadin.ui.AbsoluteLayout
com.vaadin.ui.Accordion
com.vaadin.ui.Audio
com.vaadin.ui.Button
com.vaadin.ui.CheckBox
com.vaadin.ui.ComboBox
com.vaadin.ui.CssLayout
com.vaadin.ui.CustomComponent
com.vaadin.ui.CustomLayout
com.vaadin.ui.DateField
com.vaadin.ui.DragAndDropWrapper
com.vaadin.ui.Embedded
com.vaadin.ui.Form
com.vaadin.ui.FormLayout
com.vaadin.ui.GridLayout
com.vaadin.ui.HorizontalLayout
com.vaadin.ui.HorizontalSplitPanel
com.vaadin.ui.InlineDateField
com.vaadin.ui.Label
com.vaadin.ui.Link
com.vaadin.ui.ListSelect
com.vaadin.ui.MenuBar
com.vaadin.ui.NativeButton
com.vaadin.ui.NativeSelect
com.vaadin.ui.OptionGroup
com.vaadin.ui.OrderedLayout
com.vaadin.ui.Panel
com.vaadin.ui.PasswordField
com.vaadin.ui.PopupView
com.vaadin.ui.ProgressIndicator
com.vaadin.ui.RichTextArea
com.vaadin.ui.Select
com.vaadin.ui.Slider
com.vaadin.ui.SplitPanel
com.vaadin.ui.TabSheet
com.vaadin.ui.Table
com.vaadin.ui.TextArea
com.vaadin.ui.TextField
com.vaadin.ui.Tree
com.vaadin.ui.TreeTable
com.vaadin.ui.TwinColSelect
com.vaadin.ui.Upload
com.vaadin.ui.UriFragmentUtility
com.vaadin.ui.VerticalLayout
com.vaadin.ui.VerticalSplitPanel
com.vaadin.ui.Video
com.vaadin.ui.Window
Done. (3seconds)
Scanning for additional dependencies: jar:file:/home/nolan/.gradle/caches/artifacts-15/filestore/com.google.gwt/gwt-user/2.3.0/jar/56370730a26623ac3a05b111096ed24599ffb01e/gwt-user-2.3.0.jar!/com/google/gwt/user/client/ui/MenuBar.java
Adding '1' new generated units
Validating newly compiled units
[ERROR] Errors in 'generated://866E533E810D66AB0B074B0163B8A8C0/com/google/gwt/user/client/ui/MenuBar_Resources_default_InlineClientBundleGenerator.java'
[ERROR] Line 11: The method fromTrustedString(String) is undefined for the type UriUtils
See snapshot: /tmp/com.google.gwt.user.client.ui.MenuBar_Resources_default_InlineClientBundleGenerator3412179914385779309.java
Scanning for additional dependencies: jar:file:/home/nolan/.gradle/caches/artifacts-15/filestore/com.google.gwt/gwt-user/2.3.0/jar/56370730a26623ac3a05b111096ed24599ffb01e/gwt-user-2.3.0.jar!/com/google/gwt/user/client/ui/DisclosurePanel.java
Adding '1' new generated units
Validating newly compiled units
[ERROR] Errors in 'generated://59B9DC327723A2FD9849342ADEF4A992/com/google/gwt/user/client/ui/DisclosurePanel_DefaultImages_default_InlineClientBundleGenerator.java'
[ERROR] Line 11: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 29: The method fromTrustedString(String) is undefined for the type UriUtils
See snapshot: /tmp/com.google.gwt.user.client.ui.DisclosurePanel_DefaultImages_default_InlineClientBundleGenerator412908390770151896.java
[ERROR] Errors in 'generated://866E533E810D66AB0B074B0163B8A8C0/com/google/gwt/user/client/ui/MenuBar_Resources_default_InlineClientBundleGenerator.java'
[ERROR] Line 11: The method fromTrustedString(String) is undefined for the type UriUtils
Scanning for additional dependencies: jar:file:/home/nolan/.gradle/caches/artifacts-15/filestore/com.google.gwt/gwt-user/2.3.0/jar/56370730a26623ac3a05b111096ed24599ffb01e/gwt-user-2.3.0.jar!/com/google/gwt/user/client/ui/Tree.java
Adding '1' new generated units
Validating newly compiled units
[ERROR] Errors in 'generated://F96346BB16742D29129AA81852EFAC16/com/google/gwt/user/client/ui/Tree_Resources_default_InlineClientBundleGenerator.java'
[ERROR] Line 11: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 29: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 47: The method fromTrustedString(String) is undefined for the type UriUtils
See snapshot: /tmp/com.google.gwt.user.client.ui.Tree_Resources_default_InlineClientBundleGenerator5837107723025801242.java
[ERROR] Errors in 'generated://59B9DC327723A2FD9849342ADEF4A992/com/google/gwt/user/client/ui/DisclosurePanel_DefaultImages_default_InlineClientBundleGenerator.java'
[ERROR] Line 11: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 29: The method fromTrustedString(String) is undefined for the type UriUtils
Scanning for additional dependencies: jar:file:/home/nolan/.gradle/caches/artifacts-15/filestore/com.vaadin/vaadin/6.8.7/jar/581d6f629c436190b7ddaeec39ffcc0906ae65dc/vaadin-6.8.7.jar!/com/vaadin/terminal/gwt/client/ui/richtextarea/VRichTextToolbar.java
Adding '2' new generated units
Validating newly compiled units
[ERROR] Errors in 'generated://661AB311484B884E6AC2E4E699ADF095/com/vaadin/terminal/gwt/client/ui/richtextarea/VRichTextToolbar_Images_default_InlineClientBundleGenerator.java'
[ERROR] Line 11: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 29: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 47: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 65: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 83: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 101: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 119: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 137: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 155: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 173: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 191: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 209: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 227: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 245: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 263: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 281: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 299: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 317: The method fromTrustedString(String) is undefined for the type UriUtils
See snapshot: /tmp/com.vaadin.terminal.gwt.client.ui.richtextarea.VRichTextToolbar_Images_default_InlineClientBundleGenerator6509507868241238794.java
[ERROR] Errors in 'generated://F96346BB16742D29129AA81852EFAC16/com/google/gwt/user/client/ui/Tree_Resources_default_InlineClientBundleGenerator.java'
[ERROR] Line 11: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 29: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 47: The method fromTrustedString(String) is undefined for the type UriUtils
Scanning for additional dependencies: jar:file:/home/nolan/.gradle/caches/artifacts-15/filestore/com.vaadin/vaadin/6.8.7/jar/581d6f629c436190b7ddaeec39ffcc0906ae65dc/vaadin-6.8.7.jar!/com/vaadin/terminal/gwt/client/ui/dd/VAcceptCriteria.java
Computing all possible rebind results for 'com.vaadin.terminal.gwt.client.ui.dd.VAcceptCriterionFactory'
Rebinding com.vaadin.terminal.gwt.client.ui.dd.VAcceptCriterionFactory
Invoking generator com.vaadin.terminal.gwt.widgetsetutils.AcceptCriteriaFactoryGenerator
Detecting available criteria ...
creating mapping for com.vaadin.event.dd.acceptcriteria.SourceIs
creating mapping for com.vaadin.event.dd.acceptcriteria.Or
creating mapping for com.vaadin.event.dd.acceptcriteria.ContainsDataFlavor
creating mapping for com.vaadin.ui.Table.TableDropCriterion
creating mapping for com.vaadin.event.dd.acceptcriteria.And
creating mapping for com.vaadin.event.dd.acceptcriteria.AcceptAll
creating mapping for com.vaadin.event.dd.acceptcriteria.ServerSideCriterion
creating mapping for com.vaadin.ui.Tree.TreeDropCriterion
creating mapping for com.vaadin.ui.AbstractSelect.TargetItemIs
creating mapping for com.vaadin.event.dd.acceptcriteria.Not
creating mapping for com.vaadin.ui.Tree.TargetInSubtree
creating mapping for com.vaadin.event.dd.acceptcriteria.SourceIsTarget
creating mapping for com.vaadin.event.dd.acceptcriteria.TargetDetailIs
creating mapping for com.vaadin.ui.AbstractSelect.AcceptItem
Done. (0seconds)
[ERROR] Errors in 'generated://661AB311484B884E6AC2E4E699ADF095/com/vaadin/terminal/gwt/client/ui/richtextarea/VRichTextToolbar_Images_default_InlineClientBundleGenerator.java'
[ERROR] Line 11: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 29: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 47: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 65: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 83: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 101: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 119: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 137: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 155: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 173: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 191: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 209: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 227: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 245: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 263: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 281: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 299: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 317: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Cannot proceed due to previous errors
:widgetset FAILED
BUILD FAILED
Total time: 35.702 secs