diff --git a/package-search-api-models b/package-search-api-models index ca8e12a7..9e098b97 160000 --- a/package-search-api-models +++ b/package-search-api-models @@ -1 +1 @@ -Subproject commit ca8e12a7d43fc1e7b943e8b522090d28154c4361 +Subproject commit 9e098b97fe7437e64092ca49862cdc82966a7693 diff --git a/plugin/core/build.gradle.kts b/plugin/core/build.gradle.kts index 981fb2a0..d1e0014d 100644 --- a/plugin/core/build.gradle.kts +++ b/plugin/core/build.gradle.kts @@ -1,5 +1,6 @@ @file:Suppress("UnstableApiUsage") +import kotlin.math.max import org.jetbrains.packagesearch.gradle.GeneratePackageSearchObject @@ -42,6 +43,11 @@ kotlin.sourceSets.main { val pkgsPluginId: String by project +val runNumber = System.getenv("RUN_NUMBER")?.toInt() ?: 0 +val runAttempt = System.getenv("RUN_ATTEMPT")?.toInt() ?: 0 +val snapshotMinorVersion = max(0, runNumber + runAttempt - 1) +val versionString = project.version.toString() + tasks { withType { environment("DB_PATH", layout.buildDirectory.file("tests/cache.db").get().asFile.absolutePath) @@ -49,6 +55,7 @@ tasks { val generatePluginDataSources by registering(GeneratePackageSearchObject::class) { pluginId = pkgsPluginId outputDir = generatedDir + pluginVersion = versionString.replace("-SNAPSHOT", ".$snapshotMinorVersion") packageName = "com.jetbrains.packagesearch.plugin.core" } sourcesJar {