-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
77 lines (64 loc) · 1.72 KB
/
build.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
plugins {
id 'org.xtext.builder' version '4.0.0'
id 'application'
}
repositories {
mavenCentral()
maven {
url "https://repo1.maven.org/maven2/"
}
maven {
url "https://repo.eclipse.org/content/repositories/atl-releases/"
}
}
version = '1.0-SNAPSHOT'
application {
mainClass = "mde.App"
}
jar {
manifest {
attributes "Main-Class": application.mainClass
}
}
dependencies {
//Target CSP(Choco)
implementation project(':OCLinChoco:lib')
// implementation 'org.choco-solver:choco-solver:+' //api of OCLinChoco
//Source ATL(OCL)
implementation "org.eclipse.emf:org.eclipse.emf.ecore:+"
implementation "org.eclipse.m2m.atl:org.eclipse.m2m.atl.engine:4.8.0"
implementation "org.eclipse.m2m.atl:org.eclipse.m2m.atl.common:4.8.0"
implementation "org.eclipse.m2m.atl:org.eclipse.m2m.atl.dsls:4.8.0"
implementation "org.eclipse.m2m.atl:org.eclipse.m2m.atl.emftvm.compiler:4.8.0"
//Source xcore(UML)
implementation "org.eclipse.xtext:org.eclipse.xtext:+"
implementation 'org.eclipse.emf:org.eclipse.emf.ecore.xcore.lib:+'
xtextLanguages('org.eclipse.emf:org.eclipse.emf.ecore.xcore:+') {
exclude group: 'org.antlr', module: 'antlr-runtime'
}
}
sourceSets {
main {
java.srcDirs += "src-gen"
}
}
xtext {
version = "2.25.0"
languages {
xcore {
setup = 'org.eclipse.emf.ecore.xcore.XcoreStandaloneSetup'
generator.outlet.producesJava = true
}
}
sourceSets {
main {
srcDir 'model'
output {
dir(xtext.languages.xcore.generator.outlet, 'src-gen')
}
}
}
}
clean {
delete 'src-gen/'
}