Build failed after Create Polymer Client Module

After Created Polymer Client Module, the build failed on each Additional dependency in my
project, before that the project build and run was ok.

exemple for one dependency (the same for all)

Required by:
project :app-global

Could not find mylib:jasperreports-javaflow-6.3.1:.
Searched in the following locations:
https://repo.cuba-platform.com/content/groups/work/mylib/jasperreports-javaflow-6.3.1//jasperreports-javaflow-6.3.1-.pom
https://repo.cuba-platform.com/content/groups/work/mylib/jasperreports-javaflow-6.3.1//jasperreports-javaflow-6.3.1-.jar
https://repo.cuba-platform.com/content/groups/premium/mylib/jasperreports-javaflow-6.3.1//jasperreports-javaflow-6.3.1-.pom
https://repo.cuba-platform.com/content/groups/premium/mylib/jasperreports-javaflow-6.3.1//jasperreports-javaflow-6.3.1-.jar
Required by:

Hi,

Could you please provide the following information:

  • What platform and Studio versions do you use?
  • Did you add some dependencies/repositories to your build.gradle manually?
  • If possible please attach the build.gradle.

Hello,
Studio Server :6.5.4
Platform version : 6.5.5

I didn’t add manually any dependency

Thanks

build.gradle.zip (2.2K)

Hi.
I have looked at your build.gradle . And found there


configure(globalModule) {
    dependencies {
        compile('mylib:jasperreports-6.3.1')
        compile('mylib:groovy-all-2.4.9')
        compile('mylib:commons-beanutils-1.9.3')
        compile('mylib:jasperreports-chart-themes-6.3.1')
        compile('mylib:jasperreports-fonts-6.3.1')
        compile('mylib:jasperreports-functions-6.3.1')
        compile('mylib:jasperreports-javaflow-6.3.1')
        compile('mylib:jasperreports-chart-customizers-6.3.1')
        compile('myllib:commons-digester-1.7')
        compile('mylib:barcode4j')
        compile('mylib:zxing-2.1')
        compile('mylib:batik-bridge-1.8')
        compile('mylib:batik-anim-1.8')
        compile('mylib:itextpdf-5.5.10')
        compile('mylib:bcprov-jdk15on-156')
    }

    task enhance(type: CubaEnhancing)   
}

Have you added dependencies of the global module using Studio? Where are the artifacts located?
In local Maven? Then you should enable “Use local Maven repository” in project properties (advanced tab).

Hi,
I don’t want to use a maven repo, and it was working just fine before the creation of the Polymer Client Module.
my jar files are located on the lib directory under the project directory

Hi,
In my project, when I try to adjust dependencies similarly as you do build fails not depending on the polymer module.
If you want to use .jars from a local directory you can add flatDir to the repositories block.

repositories {
   flatDir {
       dirs 'mylib'
   }
}
....

configure(globalModule) {
    task enhance(type: CubaEnhancing)
    dependencies {
        compile name:'jasperreports-javaflow-6.3.1'
    }   
}