Skip to content

Commit 1108cec

Browse files
committed
Migrate grammars to distribution plugin
1 parent 4be5688 commit 1108cec

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

grammars/build.gradle.kts

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
1-
tasks.register<Zip>("distZip") {
2-
from(projectDir) {
3-
include("*.json")
1+
plugins {
2+
distribution
3+
}
4+
5+
distributions {
6+
main {
7+
distributionClassifier.set("classifier")
8+
contents {
9+
from(projectDir) {
10+
include("*.json")
11+
}
12+
}
413
}
14+
}
15+
16+
tasks.getByName<Zip>("distZip") {
517
archiveFileName.set("${project.name}.zip")
6-
destinationDirectory.set(file("$buildDir/distributions"))
718
}

0 commit comments

Comments
 (0)