Skip to content

Commit 2b5708f

Browse files
committed
fix: plugin artefacts should go in a folder without version
- jar artefacts should be grouped under a folder whose name acts as a plugin id, which means the version should not be present in the name. - with this patch we differentiate between plugin name (root folder) and plugin id (second level folder)
1 parent 2763084 commit 2b5708f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

build.gradle.kts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ dependencies {
5252
}
5353

5454
val pluginId = properties("group")
55+
val pluginName = properties("name")
5556
val pluginVersion = properties("version")
5657

5758
changelog {
@@ -145,7 +146,8 @@ val pluginZip by tasks.creating(Zip::class) {
145146
include("icon.svg")
146147
rename("icon.svg", "pluginIcon.svg")
147148
}
148-
archiveBaseName.set("$pluginId-$pluginVersion")
149+
into(pluginId)
150+
archiveBaseName.set(pluginName)
149151
}
150152

151153
val uploadPlugin by tasks.creating {

gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
version=0.1.0
22
group=com.coder.toolbox
3+
name=coder-toolbox

0 commit comments

Comments
 (0)