xtext-core/org.eclipse.xtext.tests/build.gradle
Christian Dietrich c6daeb75a5 [#1648] fixed regression in InjectionExtension
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2020-12-18 10:36:54 +01:00

46 lines
1.6 KiB
Groovy

apply from: "${rootDir}/gradle/mwe2-workflows.gradle"
dependencies {
compile project(':org.eclipse.xtext.testing')
compile project(':org.eclipse.xtext.xtext.generator')
compile project(':org.eclipse.xtext.xtext.wizard')
compile project(':org.eclipse.xtext.testlanguages')
mwe2Compile project(':org.eclipse.xtext.testlanguages')
compile 'junit:junit'
compile 'org.eclipse.emf:org.eclipse.emf.common'
compile 'org.eclipse.emf:org.eclipse.emf.ecore.xmi'
optional files('lib/simple.jar')
// The MWE2 workflow depends on emf-gen, so we have to include it in the test dependencies
testCompile sourceSets.mwe2.output
testCompile 'args4j:args4j'
// 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'
}
sourceSets.test {
java.srcDirs = ['src', 'src-gen', 'suites']
if (findProperty('compileXtend') != 'true') {
java.srcDir 'xtend-gen'
}
}
sourceSets.mwe2 {
java.srcDirs = ['generator/src', 'emf-gen']
runtimeClasspath += processTestResources.outputs.files
}
jar.from sourceSets.mwe2.output
sourcesJar.from sourceSets.mwe2.allSource
task generateTestLanguages(type: XtextGeneratorTask) {
workflow = file('src/org/eclipse/xtext/GenerateAllTestLanguages.mwe2')
outputs.dir 'src-gen'
}
test {
exclude 'org.eclipse.xtext.serializer.contextFinderTest.NestedTypeRecursiveTest.class'
exclude '**/*Suite.class'
}