All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.corda.plugins.ProjectPublishExtension.groovy Maven / Gradle / Ivy

Go to download

A small gradle plugin that adds a couple of convenience functions for publishing to Maven

There is a newer version: 4.0.25
Show newest version
package net.corda.plugins

class ProjectPublishExtension {
    private PublishTasks task

    void setPublishTask(PublishTasks task) {
        this.task = task
    }

    /**
     * Use a different name from the current project name for publishing.
     * Set this after all other settings that need to be configured
     */
    void name(String name) {
        task.setPublishName(name)
    }

    /**
     * True when we do not want to publish default Java components
     */
    Boolean disableDefaultJar = false

    /**
     * True if publishing a WAR instead of a JAR. Forces disableDefaultJAR to "true" when true
     */
    Boolean publishWar = false
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy