diff options
Diffstat (limited to 'language-web/build.gradle')
-rw-r--r-- | language-web/build.gradle | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/language-web/build.gradle b/language-web/build.gradle new file mode 100644 index 00000000..3e0008da --- /dev/null +++ b/language-web/build.gradle | |||
@@ -0,0 +1,37 @@ | |||
1 | plugins { | ||
2 | id 'war' | ||
3 | } | ||
4 | |||
5 | dependencies { | ||
6 | compile project(':language') | ||
7 | compile project(':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 | // CodeMirror 5.53.0 and later is incompatible with Xtext due to | ||
15 | // https://github.com/codemirror/CodeMirror/commit/b2d26b4ccb1d0994ae84d18ad8b84018de176da9#commitcomment-41525744 | ||
16 | compile "org.webjars.npm:codemirror:5.52.2" | ||
17 | providedCompile "org.eclipse.jetty:jetty-annotations:9.4.42.v20210604" | ||
18 | providedCompile "org.eclipse.jetty:jetty-rewrite:9.4.42.v20210604" | ||
19 | providedCompile "org.slf4j:slf4j-simple:1.7.31" | ||
20 | } | ||
21 | |||
22 | task jettyRun(type:JavaExec) { | ||
23 | dependsOn(sourceSets.main.runtimeClasspath) | ||
24 | classpath = sourceSets.main.runtimeClasspath.filter{it.exists()} | ||
25 | main = 'org.eclipse.viatra.solver.language.web.ServerLauncher' | ||
26 | standardInput = System.in | ||
27 | group = 'run' | ||
28 | description = 'Starts an example Jetty server with your language' | ||
29 | } | ||
30 | |||
31 | eclipse { | ||
32 | project { | ||
33 | file.whenMerged { | ||
34 | natures.remove('org.eclipse.wst.common.modulecore.ModuleCoreNature') | ||
35 | } | ||
36 | } | ||
37 | } | ||