cuba-platform / cuba-gradle-plugin

Gradle plugin for building CUBA platform and applications
https://www.cuba-platform.com
Apache License 2.0
15 stars 18 forks source link

Provide declarative DSL for Gradle tasks that are supported by Studio #21

Open haulmont-git opened 6 years ago

haulmont-git commented 6 years ago

For instance, if developer enables "Build WAR" in Studio then declarative block is generated in build.gradle instead of custom tasks:

configure(coreModule) {
    apply(plugin: 'java')
    apply(plugin: 'maven')
    apply(plugin: 'cuba')

    cuba {
        war {
            appProperties = []
            appHome = '..'
        }

        singleWar {
            webXml = '../single-war-web.xml'
        }
    }

In this case buildWar / buildSingleWar tasks should be created automatically by CubaPlugin


Original issue: https://youtrack.haulmont.com/issue/PL-10173