diff options
Diffstat (limited to 'org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.web/build.gradle')
-rw-r--r-- | org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.web/build.gradle | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.web/build.gradle b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.web/build.gradle new file mode 100644 index 00000000..a3bfc039 --- /dev/null +++ b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.web/build.gradle | |||
@@ -0,0 +1,35 @@ | |||
1 | plugins { | ||
2 | id 'war' | ||
3 | } | ||
4 | |||
5 | dependencies { | ||
6 | compile project(':org.eclipse.viatra.solver.language') | ||
7 | compile project(':org.eclipse.viatra.solver.language.ide') | ||
8 | compile "org.eclipse.xtext:org.eclipse.xtext.xbase.web:${xtextVersion}" | ||
9 | compile "org.eclipse.xtext:org.eclipse.xtext.web.servlet:${xtextVersion}" | ||
10 | compile "org.eclipse.xtend:org.eclipse.xtend.lib:${xtextVersion}" | ||
11 | compile "org.webjars:requirejs:2.3.6" | ||
12 | compile "org.webjars:requirejs-text:2.0.15" | ||
13 | compile "org.webjars:jquery:3.6.0" | ||
14 | compile "org.webjars:codemirror:5.41.0" | ||
15 | providedCompile "org.eclipse.jetty:jetty-annotations:9.4.42.v20210604" | ||
16 | providedCompile "org.eclipse.jetty:jetty-rewrite:9.4.42.v20210604" | ||
17 | providedCompile "org.slf4j:slf4j-simple:1.7.31" | ||
18 | } | ||
19 | |||
20 | task jettyRun(type:JavaExec) { | ||
21 | dependsOn(sourceSets.main.runtimeClasspath) | ||
22 | classpath = sourceSets.main.runtimeClasspath.filter{it.exists()} | ||
23 | main = 'org.eclipse.viatra.solver.language.web.ServerLauncher' | ||
24 | standardInput = System.in | ||
25 | group = 'run' | ||
26 | description = 'Starts an example Jetty server with your language' | ||
27 | } | ||
28 | |||
29 | eclipse { | ||
30 | project { | ||
31 | file.whenMerged { | ||
32 | natures.remove('org.eclipse.wst.common.modulecore.ModuleCoreNature') | ||
33 | } | ||
34 | } | ||
35 | } \ No newline at end of file | ||