| Type | Name and description |
|---|---|
java.lang.Boolean |
disableDefaultJarTrue when we do not want to publish default Java components |
java.lang.Boolean |
publishJavadocTrue if publishing javadoc to remote repositories |
java.lang.Boolean |
publishSourcesTrue if publishing sources to remote repositories |
java.lang.Boolean |
publishWarTrue if publishing a WAR instead of a JAR. |
| Constructor and description |
|---|
ProjectPublishExtension
(org.gradle.api.model.ObjectFactory objects, PublishTasks task) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
dependenciesFrom(org.gradle.api.artifacts.Configuration dependencies, groovy.lang.Closure configuration = null)The Gradle configuration that defines this artifact's dependencies. |
|
MavenDependencyExtension |
getDependencyConfig()@return default configuration for Maven dependencies generated by "dependenciesFrom" field. |
|
void |
name(java.lang.String name)Use a different name from the current project name for publishing. |
|
java.lang.String |
name()Get the publishing name for this project. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(), java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
True when we do not want to publish default Java components
True if publishing javadoc to remote repositories
True if publishing sources to remote repositories
True if publishing a WAR instead of a JAR. Forces disableDefaultJAR to "true" when true
The Gradle configuration that defines this artifact's dependencies. This overrides the dependencies that would otherwise be derived from "components.java" or "components.web". Implies both "disableDefaultJar=true" and "publishWar=false"
publish {
dependenciesFrom configurations.runtimeArtifacts
}
or
publish {
dependenciesFrom(configurations.runtimeArtifacts) {
defaultScope = 'compile'
}
}
Use a different name from the current project name for publishing. Set this after all other settings that need to be configured
Get the publishing name for this project.
Groovy Documentation