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