add nightly publication type

commit_hash:ab21f3e3a3f327abe71aa834a8601cbf7893d314
This commit is contained in:
gulevsky
2025-10-23 03:55:27 +03:00
parent 214bc21198
commit 592d480be9
@@ -21,6 +21,16 @@ enum class PublicationType {
}
},
nightly {
override fun getVersionSuffix() = "-${VERSION_DATE_FORMAT.format(Date())}-NIGHTLY"
override fun configureForProject(project: Project) {
project.tasks.withType(AbstractPublishToMaven::class.java).configureEach { task ->
task.notCompatibleWithConfigurationCache("Snapshot publication type is not compatible " +
"with configuration cache as it uses build start timestamp")
}
}
},
release {
override fun getVersionSuffix() = ""
override fun configureForProject(project: Project) = Unit