Vaadin Addons "not found" building with Gradle

I am converting a Vaadin based application from maven to gradle. The vaadin addons I used via maven are not found when using gradle.

Here is my build.gradle (it is a subproject):

repositories {
    maven {
        url "http://maven.vaadin.com/vaadin-addons"
    }
}

dependencies {
    compile project(":MagniCompCommon")
    
    // Vaadin core
    compile("com.vaadin:vaadin-server:$vaadinVersion")
    compile("com.vaadin:vaadin-themes:$vaadinVersion")
    // Vaadin Addons
    compile("org.vaadin.icons:vaadin-icons:$vaadinIconsVersion")
    compile("org.vaadin.teemusa:gridextensionpack:0.2.3")
    compile("com.vaadin.addon:jpacontainer:3.2.0")
    compile("com.vaadin.addon:confirmdialog:2.1.3")
    compile("com.vaadin.addons:pagedtable:0.6.5")
    compile("com.vaadin.addons:pagingcomponent:0.9.6")
    compile("org.vaadin.addons:googleanalyticstracker:2.1.0")
}

When I “gradle build” some of the addons are not found while some are not mentioned (which I assume succeed). As you can see in the output below, gradle is trying the maven vaadin-addons repo.

FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all dependencies for configuration ':MagniCompVaadin:compile'.
> Could not find com.vaadin.addon:confirmdialog:2.1.3.
  Searched in the following locations:
      file:/home/mcooper/ws/cmb/CmbProduct/MagniCompCommon/repo/com/vaadin/addon/confirmdialog/2.1.3/confirmdialog-2.1.3.pom
      file:/home/mcooper/ws/cmb/CmbProduct/MagniCompCommon/repo/com/vaadin/addon/confirmdialog/2.1.3/confirmdialog-2.1.3.jar
      https://repo1.maven.org/maven2/com/vaadin/addon/confirmdialog/2.1.3/confirmdialog-2.1.3.pom
      https://repo1.maven.org/maven2/com/vaadin/addon/confirmdialog/2.1.3/confirmdialog-2.1.3.jar
      http://download.java.net/maven/2/com/vaadin/addon/confirmdialog/2.1.3/confirmdialog-2.1.3.pom
      http://download.java.net/maven/2/com/vaadin/addon/confirmdialog/2.1.3/confirmdialog-2.1.3.jar
      https://oss.sonatype.org/content/groups/public/org/eclipse/emf/com/vaadin/addon/confirmdialog/2.1.3/confirmdialog-2.1.3.pom
      https://oss.sonatype.org/content/groups/public/org/eclipse/emf/com/vaadin/addon/confirmdialog/2.1.3/confirmdialog-2.1.3.jar
      https://oss.sonatype.org/content/repositories/public/eclipse/com/vaadin/addon/confirmdialog/2.1.3/confirmdialog-2.1.3.pom
      https://oss.sonatype.org/content/repositories/public/eclipse/com/vaadin/addon/confirmdialog/2.1.3/confirmdialog-2.1.3.jar
      https://repository.jboss.org/nexus/content/groups/public-jboss/com/vaadin/addon/confirmdialog/2.1.3/confirmdialog-2.1.3.pom
      https://repository.jboss.org/nexus/content/groups/public-jboss/com/vaadin/addon/confirmdialog/2.1.3/confirmdialog-2.1.3.jar
      http://maven.vaadin.com/vaadin-addons/com/vaadin/addon/confirmdialog/2.1.3/confirmdialog-2.1.3.pom
      http://maven.vaadin.com/vaadin-addons/com/vaadin/addon/confirmdialog/2.1.3/confirmdialog-2.1.3.jar
      http://oss.sonatype.org/content/repositories/vaadin-snapshots/com/vaadin/addon/confirmdialog/2.1.3/confirmdialog-2.1.3.pom
      http://oss.sonatype.org/content/repositories/vaadin-snapshots/com/vaadin/addon/confirmdialog/2.1.3/confirmdialog-2.1.3.jar
      http://maven.clapper.org/com/vaadin/addon/confirmdialog/2.1.3/confirmdialog-2.1.3.pom
      http://maven.clapper.org/com/vaadin/addon/confirmdialog/2.1.3/confirmdialog-2.1.3.jar
      http://jasperreports.sourceforge.net/maven2/com/vaadin/addon/confirmdialog/2.1.3/confirmdialog-2.1.3.pom
      http://jasperreports.sourceforge.net/maven2/com/vaadin/addon/confirmdialog/2.1.3/confirmdialog-2.1.3.jar
  Required by:
      CmbProduct:MagniCompVaadin:1.0.0.4-alpha2
> Could not find com.vaadin.addons:pagedtable:0.6.5.
  Searched in the following locations:
      file:/home/mcooper/ws/cmb/CmbProduct/MagniCompCommon/repo/com/vaadin/addons/pagedtable/0.6.5/pagedtable-0.6.5.pom
      file:/home/mcooper/ws/cmb/CmbProduct/MagniCompCommon/repo/com/vaadin/addons/pagedtable/0.6.5/pagedtable-0.6.5.jar
      https://repo1.maven.org/maven2/com/vaadin/addons/pagedtable/0.6.5/pagedtable-0.6.5.pom
      https://repo1.maven.org/maven2/com/vaadin/addons/pagedtable/0.6.5/pagedtable-0.6.5.jar
      http://download.java.net/maven/2/com/vaadin/addons/pagedtable/0.6.5/pagedtable-0.6.5.pom
      http://download.java.net/maven/2/com/vaadin/addons/pagedtable/0.6.5/pagedtable-0.6.5.jar
      https://oss.sonatype.org/content/groups/public/org/eclipse/emf/com/vaadin/addons/pagedtable/0.6.5/pagedtable-0.6.5.pom
      https://oss.sonatype.org/content/groups/public/org/eclipse/emf/com/vaadin/addons/pagedtable/0.6.5/pagedtable-0.6.5.jar
      https://oss.sonatype.org/content/repositories/public/eclipse/com/vaadin/addons/pagedtable/0.6.5/pagedtable-0.6.5.pom
      https://oss.sonatype.org/content/repositories/public/eclipse/com/vaadin/addons/pagedtable/0.6.5/pagedtable-0.6.5.jar
      https://repository.jboss.org/nexus/content/groups/public-jboss/com/vaadin/addons/pagedtable/0.6.5/pagedtable-0.6.5.pom
      https://repository.jboss.org/nexus/content/groups/public-jboss/com/vaadin/addons/pagedtable/0.6.5/pagedtable-0.6.5.jar
      http://maven.vaadin.com/vaadin-addons/com/vaadin/addons/pagedtable/0.6.5/pagedtable-0.6.5.pom
      http://maven.vaadin.com/vaadin-addons/com/vaadin/addons/pagedtable/0.6.5/pagedtable-0.6.5.jar
      http://oss.sonatype.org/content/repositories/vaadin-snapshots/com/vaadin/addons/pagedtable/0.6.5/pagedtable-0.6.5.pom
      http://oss.sonatype.org/content/repositories/vaadin-snapshots/com/vaadin/addons/pagedtable/0.6.5/pagedtable-0.6.5.jar
      http://maven.clapper.org/com/vaadin/addons/pagedtable/0.6.5/pagedtable-0.6.5.pom
      http://maven.clapper.org/com/vaadin/addons/pagedtable/0.6.5/pagedtable-0.6.5.jar
      http://jasperreports.sourceforge.net/maven2/com/vaadin/addons/pagedtable/0.6.5/pagedtable-0.6.5.pom
      http://jasperreports.sourceforge.net/maven2/com/vaadin/addons/pagedtable/0.6.5/pagedtable-0.6.5.jar
  Required by:
      CmbProduct:MagniCompVaadin:1.0.0.4-alpha2
> Could not find com.vaadin.addons:pagingcomponent:0.9.6.
  Searched in the following locations:
      file:/home/mcooper/ws/cmb/CmbProduct/MagniCompCommon/repo/com/vaadin/addons/pagingcomponent/0.9.6/pagingcomponent-0.9.6.pom
      file:/home/mcooper/ws/cmb/CmbProduct/MagniCompCommon/repo/com/vaadin/addons/pagingcomponent/0.9.6/pagingcomponent-0.9.6.jar
      https://repo1.maven.org/maven2/com/vaadin/addons/pagingcomponent/0.9.6/pagingcomponent-0.9.6.pom
      https://repo1.maven.org/maven2/com/vaadin/addons/pagingcomponent/0.9.6/pagingcomponent-0.9.6.jar
      http://download.java.net/maven/2/com/vaadin/addons/pagingcomponent/0.9.6/pagingcomponent-0.9.6.pom
      http://download.java.net/maven/2/com/vaadin/addons/pagingcomponent/0.9.6/pagingcomponent-0.9.6.jar
      https://oss.sonatype.org/content/groups/public/org/eclipse/emf/com/vaadin/addons/pagingcomponent/0.9.6/pagingcomponent-0.9.6.pom
      https://oss.sonatype.org/content/groups/public/org/eclipse/emf/com/vaadin/addons/pagingcomponent/0.9.6/pagingcomponent-0.9.6.jar
      https://oss.sonatype.org/content/repositories/public/eclipse/com/vaadin/addons/pagingcomponent/0.9.6/pagingcomponent-0.9.6.pom
      https://oss.sonatype.org/content/repositories/public/eclipse/com/vaadin/addons/pagingcomponent/0.9.6/pagingcomponent-0.9.6.jar
      https://repository.jboss.org/nexus/content/groups/public-jboss/com/vaadin/addons/pagingcomponent/0.9.6/pagingcomponent-0.9.6.pom
      https://repository.jboss.org/nexus/content/groups/public-jboss/com/vaadin/addons/pagingcomponent/0.9.6/pagingcomponent-0.9.6.jar
      http://maven.vaadin.com/vaadin-addons/com/vaadin/addons/pagingcomponent/0.9.6/pagingcomponent-0.9.6.pom
      http://maven.vaadin.com/vaadin-addons/com/vaadin/addons/pagingcomponent/0.9.6/pagingcomponent-0.9.6.jar
      http://oss.sonatype.org/content/repositories/vaadin-snapshots/com/vaadin/addons/pagingcomponent/0.9.6/pagingcomponent-0.9.6.pom
      http://oss.sonatype.org/content/repositories/vaadin-snapshots/com/vaadin/addons/pagingcomponent/0.9.6/pagingcomponent-0.9.6.jar
      http://maven.clapper.org/com/vaadin/addons/pagingcomponent/0.9.6/pagingcomponent-0.9.6.pom
      http://maven.clapper.org/com/vaadin/addons/pagingcomponent/0.9.6/pagingcomponent-0.9.6.jar
      http://jasperreports.sourceforge.net/maven2/com/vaadin/addons/pagingcomponent/0.9.6/pagingcomponent-0.9.6.pom
      http://jasperreports.sourceforge.net/maven2/com/vaadin/addons/pagingcomponent/0.9.6/pagingcomponent-0.9.6.jar
  Required by:
      CmbProduct:MagniCompVaadin:1.0.0.4-alpha2

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Found the problem. When I re-typed the groupId into my build.gradle I used “com.vaadin.addon” instead of “org.vaadin.addon”. I hate silly typos like that!

There also exists a
Gradle Vaadin Plugin
which will help with compiling the widgetset, adding the correct repositories etc.