From 592d480be9f87fbad3ffc195725783581fad10eb Mon Sep 17 00:00:00 2001 From: gulevsky Date: Thu, 23 Oct 2025 03:52:20 +0300 Subject: [PATCH] add nightly publication type commit_hash:ab21f3e3a3f327abe71aa834a8601cbf7893d314 --- .../main/java/com/yandex/div/gradle/PublicationType.kt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/client/android/buildSrc/src/main/java/com/yandex/div/gradle/PublicationType.kt b/client/android/buildSrc/src/main/java/com/yandex/div/gradle/PublicationType.kt index f8d4470bb..a9c963ee0 100644 --- a/client/android/buildSrc/src/main/java/com/yandex/div/gradle/PublicationType.kt +++ b/client/android/buildSrc/src/main/java/com/yandex/div/gradle/PublicationType.kt @@ -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