mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-15 16:28:56 +00:00
23 lines
544 B
Groovy
23 lines
544 B
Groovy
/*
|
|
* Configuration of Xtend compiler.
|
|
*/
|
|
|
|
if (findProperty('compileXtend') == 'true') {
|
|
[generateXtext, generateTestXtext].each { gen ->
|
|
gen.xtextClasspath = rootProject.configurations.getByName('xtendCompiler')
|
|
}
|
|
|
|
// Defer the sources jar configuration to later when the source sets are set up completely
|
|
afterEvaluate {
|
|
sourcesJar {
|
|
from (sourceSets.main.xtendOutputDir) {
|
|
include '**/*._trace'
|
|
}
|
|
if (name.endsWith('tests')) {
|
|
from (sourceSets.test.xtendOutputDir) {
|
|
include '**/*._trace'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|