forked from JetBrains/Grammar-Kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
artifacts.gradle
28 lines (25 loc) · 1.04 KB
/
artifacts.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
task buildGrammar_kit_jar (type: Jar, dependsOn: [rootProject.tasks['assemble']]) {
baseName = 'grammar-kit'
destinationDir = file(artifactsPath)
manifest { from "$rootDir/resources/META-INF/MANIFEST.MF" }
from (rootProject.sourceSets.main.output)
from (file ("$rootDir/src/org/intellij/grammar/parser/GeneratedParserUtilBase.java")) {
into '/templates'
}
}
task buildGrammar_kit_zip (type: Zip, dependsOn: [buildGrammar_kit_jar]) {
baseName = 'GrammarKit'
destinationDir = file(artifactsPath)
from (tasks['buildGrammar_kit_jar'].outputs) {
into '/GrammarKit/lib'
}
}
task buildExpression_console_sample (type: Jar) {
baseName = 'expression-console-sample'
destinationDir = file(artifactsPath)
manifest { from "$rootDir/tests/org/intellij/grammar/expression/META-INF/MANIFEST.MF" }
from (files("$rootDir/out/test/grammar-kit/org/intellij/grammar/expression")) {
into '/org/intellij/grammar/expression'
}
}
task artifacts (dependsOn: [buildGrammar_kit_jar, buildGrammar_kit_zip, buildExpression_console_sample]) { }