Skip to content

Commit c2c92ff

Browse files
committed
fix version problem
1 parent 00ec7ca commit c2c92ff

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

build.gradle.kts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ plugins {
55
id("com.github.johnrengelman.shadow") version "8.1.1"
66
}
77

8+
fun properties(key: String) = project.findProperty(key).toString()
9+
810
group = "org.tabooproject.intellij"
9-
version = "1.0-SNAPSHOT"
11+
version = properties("version")
1012

1113
repositories {
1214
mavenCentral()
@@ -47,6 +49,11 @@ tasks {
4749
relocate("okhttp3", "org.tabooproject.intellij.okhttp3")
4850
}
4951

52+
patchPluginXml {
53+
sinceBuild.set(properties("pluginSinceBuild"))
54+
untilBuild.set(properties("pluginUntilBuild"))
55+
}
56+
5057
withType<JavaCompile> {
5158
sourceCompatibility = "17"
5259
targetCompatibility = "17"

gradle.properties

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ kotlin.stdlib.default.dependency=false
22
org.gradle.configuration-cache=true
33
org.gradle.caching=true
44

5+
pluginSinceBuild = 222
6+
pluginUntilBuild = 241.*
7+
version=1.0-SNAPSHOT
8+
59
kotlin.code.style=official
610
kotlin.experimental.tryK2=true
711
kapt.use.k2=true

0 commit comments

Comments
 (0)