Skip to content

Commit

Permalink
[2023.2.1] Dynamic Build Name~
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackStartx committed Aug 12, 2023
1 parent 571acbb commit 6c587a3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ plugins {
}

group = "org.blackstartx"
val code = "isCommunity = true"
val path = "src\\main\\java\\plugin_settings\\PluginSettings.java"
val type = if (File(path).readText().contains(code)) "Community" else "Professional"
version = "2023.2"

java {
Expand All @@ -25,5 +28,8 @@ intellij {
version.set("PY-2023.2")
}
tasks {
buildPlugin {
archiveFileName.set("${rootProject.name}.${version}.${type}.Edition.zip")
}
patchPluginXml {}
}

0 comments on commit 6c587a3

Please sign in to comment.