mirror of
https://github.com/divkit/divkit.git
synced 2026-06-06 20:07:59 +00:00
add nightly publication type
commit_hash:ab21f3e3a3f327abe71aa834a8601cbf7893d314
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user