File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 11import com.vanniktech.maven.publish.MavenPublishBaseExtension
22import io.getstream.video.android.Configuration
3+ import java.text.SimpleDateFormat
4+ import java.util.Date
5+ import java.util.TimeZone
36
47apply (from = " ${rootDir} /scripts/open-api-code-gen.gradle.kts" )
58
@@ -71,7 +74,16 @@ tasks.register("clean")
7174 }
7275
7376private val isSnapshot = System .getenv(" SNAPSHOT" )?.toBoolean() == true
74- version = if (isSnapshot) Configuration .snapshotVersionName else Configuration .versionName
77+
78+ version = if (isSnapshot) {
79+ val timestamp = SimpleDateFormat (" yyyyMMddHHmm" ).run {
80+ timeZone = TimeZone .getTimeZone(" UTC" )
81+ format(Date ())
82+ }
83+ " ${Configuration .snapshotBasedVersionName} -${timestamp} -SNAPSHOT"
84+ } else {
85+ Configuration .versionName
86+ }
7587
7688subprojects {
7789 plugins.withId(" com.vanniktech.maven.publish" ) {
You can’t perform that action at this time.
0 commit comments