Gradle error building APP on WIndows using " id 'com.enonic.xp.app' version '1.0.15'" with WEBJARS

Enonic version: 6.13.0
OS: WIN

Hey,

We have discovered an error building APP when using the upgraded way to build APPS when using webjars on windows. When built on Linux there are no errors.

I’ve tested the same with the vanilla starter app and it fails with the same error.

build.gradle

plugins {
    id 'com.enonic.xp.app' version '1.0.15'
}

app {
    name = project.appName
    displayName = 'Vanilla Starter Kit'
    vendorName = 'Enonic AS'
    vendorUrl = 'http://enonic.com'
    systemVersion = "${xpVersion}"
}

dependencies {
    compile "com.enonic.xp:core-api:${xpVersion}"
    compile "com.enonic.xp:portal-api:${xpVersion}"
    include "com.enonic.xp:lib-content:${xpVersion}"
    include "com.enonic.xp:lib-portal:${xpVersion}"
    include "com.enonic.xp:lib-thymeleaf:${xpVersion}"
    //include "com.enonic.xp:lib-mustache:${xpVersion}"
    //include "com.enonic.xp:lib-i18n:${xpVersion}"
    //include "com.enonic.xp:lib-auth:${xpVersion}"
    //include "com.enonic.xp:lib-context:${xpVersion}"
    //include "com.enonic.xp:lib-io:${xpVersion}"
    //include "com.enonic.xp:lib-mail:${xpVersion}"
    //include "com.enonic.xp:lib-repo:${xpVersion}"
    //include "com.enonic.xp:lib-websocket:${xpVersion}"

// Added WEBJAR dependency and build fails
webjar "org.webjars:bootstrap:3.3.6"

}

repositories {
    mavenLocal()
    jcenter()
    xp.enonicRepo()
}

Error message:

PS C:\Users\runar\code\vanilla-starter-test> .\gradlew.bat build

> Task :jar
esourceswebjars-starter-testbuildwebjarsMETA-INF


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':jar'.
> Bundle name-1.0.0-SNAPSHOT.jar has errors

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

BUILD FAILED in 6s
4 actionable tasks: 1 executed, 3 up-to-date

Thank you for reporting the problem :+1:
I created an issue. We will fix it and release a new version of the plugin

2 Likes

When do you expect to release this version of the plugin?

Hi

We are investigating this issue. We will post the answer here when we have more details.

Did/does the build work with earlier version of the plugin? If yes, which version was that?

Hi,

It builds on 1.0.11 but on 1.0.12 and later it fails.

/Runar

Hi Runar,

You can change the version of the plugin ‘com.enonic.xp.app’ to ‘1.0.16’.
That should solve your problem.

We will update the starters

3 Likes

Hey,

Thanks. Things are building :slight_smile:

issue resolved

//Runar

3 Likes