diff options
author | 2021-12-12 17:48:47 +0100 | |
---|---|---|
committer | 2021-12-12 17:48:47 +0100 | |
commit | fc7e9312d00e60171ed77c477ed91231d3dbfff9 (patch) | |
tree | cc185dd088b5fa6e9357aab3c9062a70626d1953 /language-model/build.gradle | |
parent | build: refactor java-application conventions (diff) | |
download | refinery-fc7e9312d00e60171ed77c477ed91231d3dbfff9.tar.gz refinery-fc7e9312d00e60171ed77c477ed91231d3dbfff9.tar.zst refinery-fc7e9312d00e60171ed77c477ed91231d3dbfff9.zip |
build: move modules into subproject directory
Diffstat (limited to 'language-model/build.gradle')
-rw-r--r-- | language-model/build.gradle | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/language-model/build.gradle b/language-model/build.gradle deleted file mode 100644 index 2cbddddb..00000000 --- a/language-model/build.gradle +++ /dev/null | |||
@@ -1,56 +0,0 @@ | |||
1 | plugins { | ||
2 | id 'java-test-fixtures' | ||
3 | id 'refinery-java-library' | ||
4 | id 'refinery-mwe2' | ||
5 | id 'refinery-sonarqube' | ||
6 | } | ||
7 | |||
8 | dependencies { | ||
9 | api libs.ecore | ||
10 | api libs.ecore.xmi | ||
11 | mwe2 libs.ecore.codegen | ||
12 | mwe2 libs.mwe.utils | ||
13 | mwe2 libs.mwe2.lib | ||
14 | mwe2 libs.xtext.core | ||
15 | mwe2 libs.xtext.xbase | ||
16 | } | ||
17 | |||
18 | sourceSets { | ||
19 | main { | ||
20 | java.srcDirs += ['src/main/emf-gen'] | ||
21 | } | ||
22 | } | ||
23 | |||
24 | def generateEPackage = tasks.register('generateEPackage', JavaExec) { | ||
25 | mainClass = 'org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher' | ||
26 | classpath = configurations.mwe2 | ||
27 | inputs.file 'src/main/java/tools/refinery/language/model/GenerateProblemModel.mwe2' | ||
28 | inputs.file 'src/main/resources/model/problem.ecore' | ||
29 | inputs.file 'src/main/resources/model/problem.genmodel' | ||
30 | outputs.dir 'src/main/emf-gen' | ||
31 | args += 'src/main/java/tools/refinery/language/model/GenerateProblemModel.mwe2' | ||
32 | args += '-p' | ||
33 | args += "rootPath=/${projectDir}" | ||
34 | } | ||
35 | |||
36 | for (taskName in ['compileJava', 'processResources', 'generateEclipseSourceFolders']) { | ||
37 | tasks.named(taskName) { | ||
38 | dependsOn generateEPackage | ||
39 | } | ||
40 | } | ||
41 | |||
42 | tasks.named('clean') { | ||
43 | delete 'src/main/emf-gen' | ||
44 | } | ||
45 | |||
46 | sonarqube.properties { | ||
47 | properties['sonar.exclusions'] += [ | ||
48 | 'src/main/emf-gen/**', | ||
49 | ] | ||
50 | } | ||
51 | |||
52 | eclipse.project.natures += [ | ||
53 | 'org.eclipse.sirius.nature.modelingproject', | ||
54 | 'org.eclipse.pde.PluginNature', | ||
55 | 'org.eclipse.xtext.ui.shared.xtextNature' | ||
56 | ] | ||