api / org.gradle.api.artifacts / PublishArtifact / getDate

getDate

abstract fun getDate(): Date

Returns the date that should be used when publishing this artifact. This is used in the module descriptor accompanying this artifact (the ivy.xml). If the date is not specified, the current date is used. If this artifact is published without an module descriptor, this property has no relevance.

Return
The date. May be null.