Skip to content

Commit c568c69

Browse files
committed
Factor out distribution archive naming into convention
1 parent 1108cec commit c568c69

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
plugins {
2+
distribution
3+
}
4+
5+
tasks.distTar {
6+
archiveFileName.set("${project.name}.tar")
7+
}
8+
9+
tasks.distZip {
10+
archiveFileName.set("${project.name}.zip")
11+
}

grammars/build.gradle.kts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
plugins {
22
distribution
3+
id("kotlin-language-server.distribution-conventions")
34
}
45

56
distributions {
67
main {
7-
distributionClassifier.set("classifier")
88
contents {
99
from(projectDir) {
1010
include("*.json")
1111
}
1212
}
1313
}
1414
}
15-
16-
tasks.getByName<Zip>("distZip") {
17-
archiveFileName.set("${project.name}.zip")
18-
}

server/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ plugins {
55
id("com.github.jk1.tcdeps")
66
id("com.jaredsburrows.license")
77
id("kotlin-language-server.publishing-conventions")
8+
id("kotlin-language-server.distribution-conventions")
89
id("kotlin-language-server.kotlin-conventions")
910
}
1011

0 commit comments

Comments
 (0)