cuba-platform / cuba-cli

CUBA Platform Development Command-Line Interface
https://www.cuba-platform.com/marketplace/cuba-cli/
Apache License 2.0
47 stars 8 forks source link

JAXB dependency is not added for projects generated using CLI for JDK > 8 #181

Closed belyaev-andrey closed 5 years ago

belyaev-andrey commented 5 years ago

If a project is generated with CLI, we need to add the following code to build.gradle file:

configure(globalModule) {
    dependencies {
        if (!JavaVersion.current().isJava8()) {
            runtime('javax.xml.bind:jaxb-api:2.3.1')
            runtime('org.glassfish.jaxb:jaxb-runtime:2.3.1')
        }
    }

    entitiesEnhancing {
        main {
            enabled = true
        }
    }
}

Otherwise, we got an error on the application startup: app.log