diff options
Diffstat (limited to 'org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language/build.gradle')
-rw-r--r-- | org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language/build.gradle | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language/build.gradle b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language/build.gradle new file mode 100644 index 00000000..558f08bb --- /dev/null +++ b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language/build.gradle | |||
@@ -0,0 +1,42 @@ | |||
1 | dependencies { | ||
2 | testCompile 'org.junit.jupiter:junit-jupiter-api' | ||
3 | testRuntime 'org.junit.jupiter:junit-jupiter-engine' | ||
4 | testCompile "org.eclipse.xtext:org.eclipse.xtext.testing:${xtextVersion}" | ||
5 | testCompile "org.eclipse.xtext:org.eclipse.xtext.xbase.testing:${xtextVersion}" | ||
6 | compile "org.eclipse.xtext:org.eclipse.xtext:${xtextVersion}" | ||
7 | compile "org.eclipse.xtext:org.eclipse.xtext.xbase:${xtextVersion}" | ||
8 | compile 'org.eclipse.emf:org.eclipse.emf.ecore' | ||
9 | compile project(':org.eclipse.viatra.solver.language.model') | ||
10 | } | ||
11 | |||
12 | configurations { | ||
13 | mwe2 { | ||
14 | extendsFrom compile | ||
15 | } | ||
16 | } | ||
17 | |||
18 | dependencies { | ||
19 | mwe2 'org.eclipse.emf:org.eclipse.emf.mwe2.launch' | ||
20 | mwe2 "org.eclipse.xtext:org.eclipse.xtext.common.types:${xtextVersion}" | ||
21 | mwe2 "org.eclipse.xtext:org.eclipse.xtext.xtext.generator:${xtextVersion}" | ||
22 | mwe2 'org.eclipse.xtext:xtext-antlr-generator' | ||
23 | } | ||
24 | |||
25 | task generateXtextLanguage(type: JavaExec) { | ||
26 | main = 'org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher' | ||
27 | classpath = configurations.mwe2 | ||
28 | inputs.file "src/main/java/org/eclipse/viatra/solver/language/GenerateProblem.mwe2" | ||
29 | inputs.file "src/main/java/org/eclipse/viatra/solver/language/Problem.xtext" | ||
30 | outputs.dir "src/main/xtext-gen" | ||
31 | args += "src/main/java/org/eclipse/viatra/solver/language/GenerateProblem.mwe2" | ||
32 | args += "-p" | ||
33 | args += "rootPath=/${projectDir}/.." | ||
34 | } | ||
35 | |||
36 | test { | ||
37 | useJUnitPlatform() | ||
38 | } | ||
39 | |||
40 | generateXtext.dependsOn(generateXtextLanguage) | ||
41 | clean.dependsOn(cleanGenerateXtextLanguage) | ||
42 | eclipse.classpath.plusConfigurations += [configurations.mwe2] | ||