Skip to content

Commit 3e61474

Browse files
Make snapshot version calendar-dependant (#1108)
1 parent 5e64e3d commit 3e61474

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

build.gradle.kts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import java.text.SimpleDateFormat
12
import org.gradle.api.JavaVersion.VERSION_11
23
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
34

@@ -8,8 +9,9 @@ val semVer: String? by project
89
val coroutinesVersion: String by project
910
val collectionsVersion: String by project
1011
val junit5Version: String by project
12+
val dateBasedVersion: String = SimpleDateFormat("YYYY.MM").format(System.currentTimeMillis()) // CI proceeds the same way
1113

12-
version = semVer ?: "1.0-SNAPSHOT"
14+
version = semVer ?: "$dateBasedVersion-SNAPSHOT"
1315

1416
plugins {
1517
`java-library`

utbot-intellij/build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ val pythonCommunityPluginVersion: String? by rootProject
77
val pythonUltimatePluginVersion: String? by rootProject
88
val sootCommitHash: String? by rootProject
99
val kryoVersion: String? by rootProject
10+
val semVer: String? by rootProject
1011

1112
plugins {
1213
id("org.jetbrains.intellij") version "1.7.0"
@@ -68,6 +69,7 @@ tasks {
6869
patchPluginXml {
6970
sinceBuild.set("212")
7071
untilBuild.set("222.*")
72+
version.set(semVer)
7173
}
7274
}
7375

utbot-intellij/src/main/resources/META-INF/plugin.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
<id>org.utbot.intellij.plugin.id</id>
55
<name>UnitTestBot</name>
66
<vendor>utbot.org</vendor>
7-
<!-- Do not insert, it is updated from build.gradle-->
8-
<!-- <idea-version since-build="202.8194.7"/>-->
9-
<version>2022.7-beta</version>
107
<depends>com.intellij.modules.platform</depends>
118
<depends>com.intellij.modules.java</depends>
129
<depends>org.jetbrains.kotlin</depends>

0 commit comments

Comments
 (0)