2017-01-11 12:34:05 +00:00
|
|
|
apply from: "${rootDir}/gradle/mwe2-workflows.gradle"
|
2016-06-17 16:27:50 +00:00
|
|
|
|
2016-06-13 09:40:30 +00:00
|
|
|
dependencies {
|
2021-08-10 10:02:12 +00:00
|
|
|
api project(':org.eclipse.xtext.testing')
|
|
|
|
api project(':org.eclipse.xtext.xtext.generator')
|
|
|
|
api project(':org.eclipse.xtext.xtext.wizard')
|
|
|
|
api project(':org.eclipse.xtext.testlanguages')
|
|
|
|
mwe2Implementation project(':org.eclipse.xtext.testlanguages')
|
|
|
|
api 'junit:junit'
|
|
|
|
api 'org.eclipse.emf:org.eclipse.emf.common'
|
|
|
|
api 'org.eclipse.emf:org.eclipse.emf.ecore.xmi'
|
2017-01-11 12:34:05 +00:00
|
|
|
optional files('lib/simple.jar')
|
|
|
|
// The MWE2 workflow depends on emf-gen, so we have to include it in the test dependencies
|
2021-08-10 10:02:12 +00:00
|
|
|
testImplementation sourceSets.mwe2.output
|
|
|
|
testImplementation 'args4j:args4j'
|
2020-12-18 08:58:29 +00:00
|
|
|
// optional for the utilities but mandatory to run the tests
|
|
|
|
testImplementation 'junit:junit'
|
|
|
|
testImplementation 'org.junit.jupiter:junit-jupiter-api'
|
|
|
|
testImplementation 'org.junit.jupiter:junit-jupiter-engine'
|
|
|
|
testImplementation 'org.junit.platform:junit-platform-suite-api'
|
|
|
|
testImplementation 'org.junit.platform:junit-platform-runner'
|
2017-01-11 12:34:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sourceSets.test {
|
2021-08-30 08:10:09 +00:00
|
|
|
java.srcDirs = ['src', 'src-gen', 'suites', 'xtend-gen']
|
2016-06-13 09:40:30 +00:00
|
|
|
}
|
|
|
|
|
2017-01-11 12:34:05 +00:00
|
|
|
sourceSets.mwe2 {
|
|
|
|
java.srcDirs = ['generator/src', 'emf-gen']
|
|
|
|
runtimeClasspath += processTestResources.outputs.files
|
2016-06-13 09:40:30 +00:00
|
|
|
}
|
2017-01-11 12:34:05 +00:00
|
|
|
jar.from sourceSets.mwe2.output
|
2021-08-10 10:02:12 +00:00
|
|
|
sourcesJar {
|
|
|
|
from sourceSets.mwe2.allSource
|
|
|
|
}
|
2017-01-11 12:34:05 +00:00
|
|
|
task generateTestLanguages(type: XtextGeneratorTask) {
|
|
|
|
workflow = file('src/org/eclipse/xtext/GenerateAllTestLanguages.mwe2')
|
|
|
|
outputs.dir 'src-gen'
|
2016-07-12 07:23:24 +00:00
|
|
|
}
|
|
|
|
|
2016-06-17 16:27:50 +00:00
|
|
|
test {
|
|
|
|
exclude 'org.eclipse.xtext.serializer.contextFinderTest.NestedTypeRecursiveTest.class'
|
2016-06-27 16:48:31 +00:00
|
|
|
exclude '**/*Suite.class'
|
2016-06-17 16:27:50 +00:00
|
|
|
}
|