net.corda.plugins.ProjectPublishExtension.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of publish-utils Show documentation
Show all versions of publish-utils Show documentation
A small gradle plugin that adds a couple of convenience functions for publishing to Maven
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