aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.web/build.gradle
blob: 495b1339ed4a972ecd873c8e3609a70f90a53304 (plain) (blame)
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
29
30
31
32
33
34
35
36
37
plugins {
	id 'war'
}

dependencies {
	compile project(':org.eclipse.viatra.solver.language')
	compile project(':org.eclipse.viatra.solver.language.ide')
	compile "org.eclipse.xtext:org.eclipse.xtext.xbase.web:${xtextVersion}"
	compile "org.eclipse.xtext:org.eclipse.xtext.web.servlet:${xtextVersion}"
	compile "org.eclipse.xtend:org.eclipse.xtend.lib:${xtextVersion}"
	compile "org.webjars:requirejs:2.3.6"
	compile "org.webjars:requirejs-text:2.0.15"
	compile "org.webjars:jquery:3.6.0"
	// CodeMirror 5.53.0 and later is incompatible with Xtext due to
	// https://github.com/codemirror/CodeMirror/commit/b2d26b4ccb1d0994ae84d18ad8b84018de176da9#commitcomment-41525744
	compile "org.webjars.npm:codemirror:5.52.2"
	providedCompile "org.eclipse.jetty:jetty-annotations:9.4.42.v20210604"
	providedCompile "org.eclipse.jetty:jetty-rewrite:9.4.42.v20210604"
	providedCompile "org.slf4j:slf4j-simple:1.7.31"
}

task jettyRun(type:JavaExec) {
	dependsOn(sourceSets.main.runtimeClasspath)
	classpath = sourceSets.main.runtimeClasspath.filter{it.exists()}
	main = 'org.eclipse.viatra.solver.language.web.ServerLauncher'
	standardInput = System.in
	group = 'run'
	description = 'Starts an example Jetty server with your language'
}

eclipse {
	project {
		file.whenMerged {
			natures.remove('org.eclipse.wst.common.modulecore.ModuleCoreNature')
		}
	}
}