Skip to content

Make snapshot version calendar-dependant #1108

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import java.text.SimpleDateFormat
import org.gradle.api.JavaVersion.VERSION_11
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

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

version = semVer ?: "1.0-SNAPSHOT"
version = semVer ?: "$dateBasedVersion-SNAPSHOT"

plugins {
`java-library`
Expand Down
2 changes: 2 additions & 0 deletions utbot-intellij/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ val pythonCommunityPluginVersion: String? by rootProject
val pythonUltimatePluginVersion: String? by rootProject
val sootCommitHash: String? by rootProject
val kryoVersion: String? by rootProject
val semVer: String? by rootProject

plugins {
id("org.jetbrains.intellij") version "1.7.0"
Expand Down Expand Up @@ -68,6 +69,7 @@ tasks {
patchPluginXml {
sinceBuild.set("212")
untilBuild.set("222.*")
version.set(semVer)
}
}

Expand Down
3 changes: 0 additions & 3 deletions utbot-intellij/src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
<id>org.utbot.intellij.plugin.id</id>
<name>UnitTestBot</name>
<vendor>utbot.org</vendor>
<!-- Do not insert, it is updated from build.gradle-->
<!-- <idea-version since-build="202.8194.7"/>-->
<version>2022.7-beta</version>
<depends>com.intellij.modules.platform</depends>
<depends>com.intellij.modules.java</depends>
<depends>org.jetbrains.kotlin</depends>
Expand Down