Publishing Simple Config
data class PublishingSimpleConfig(var project: Project, var groupId: String? = null, var artifactId: String? = null, var version: String? = null, var withJavadocSourcesJars: Boolean = true, var component: SoftwareComponent? = project.components["java"], var artifacts: Collection<Any> = emptyList(), var textArtifacts: Collection<TextArtifact> = emptyList(), var name: String? = project.name, var description: String? = project.description, var url: String? = null, var licenses: List<LicenseData> = emptyList(), var developers: List<DeveloperData> = emptyList(), val scm: ScmData? = null, var configuration: MavenPublication.() -> Unit = {})
Configuration for a dependency, including version, configuration, and configuration action
Parameters
project
The Gradle project
group Id
The group ID
artifact Id
The artifact ID
version
The version
with Javadoc Sources Jars
Whether to add Javadoc and Sources JARs to the publication
component
The SoftwareComponent to publish
artifacts
The artifacts to publish
text Artifacts
The text artifacts to publish
name
The name of the project
description
The description of the project
url
The URL of the project
licenses
The licenses of the project
developers
The developers of the project
scm
The SCM information of the project
configuration
The configuration of the MavenPublication
Constructors
Link copied to clipboard
constructor(project: Project, groupId: String? = null, artifactId: String? = null, version: String? = null, withJavadocSourcesJars: Boolean = true, component: SoftwareComponent? = project.components["java"], artifacts: Collection<Any> = emptyList(), textArtifacts: Collection<TextArtifact> = emptyList(), name: String? = project.name, description: String? = project.description, url: String? = null, licenses: List<LicenseData> = emptyList(), developers: List<DeveloperData> = emptyList(), scm: ScmData? = null, configuration: MavenPublication.() -> Unit = {})