[build] Fixed trace file inclusion, updated Xtend plugin to 1.0.15

This commit is contained in:
Miro Spönemann 2017-01-11 15:53:40 +01:00
parent 6761c499cc
commit c65b348e92
4 changed files with 12 additions and 9 deletions

View file

@ -9,7 +9,7 @@ buildscript {
apply from: "${rootDir}/gradle/versions.gradle"
repositories.jcenter()
dependencies {
classpath "org.xtext:xtext-gradle-plugin:$versions.xtend_plugin"
classpath "org.xtext:xtext-gradle-plugin:$versions.xtext_gradle_plugin"
classpath "io.typefox.gradle:gradle-p2gen:$versions.gradle_plugins"
}
}

View file

@ -32,5 +32,5 @@ configurations {
dependencies {
xtendCompiler "org.eclipse.xtend:org.eclipse.xtend.core:$bootstrapXtendVersion"
xtendCompiler "org.eclipse.xtext:org.eclipse.xtext.smap:$bootstrapXtendVersion"
xtendCompiler "org.xtext:xtext-gradle-builder:$versions.xtend_plugin"
xtendCompiler "org.xtext:xtext-gradle-builder:$versions.xtext_gradle_plugin"
}

View file

@ -8,7 +8,7 @@ ext.versions = [
'xtext': version,
'xtext_bootstrap': '2.11.0.beta2',
'gradle_plugins': '0.1.0',
'xtend_plugin': '1.0.14',
'xtext_gradle_plugin': '1.0.15',
'lsp4j': '0.1.0-SNAPSHOT',
'log4j': '1.2.16',
'equinoxCommon' : '3.8.0',

View file

@ -7,14 +7,17 @@ if (findProperty('compileXtend') == 'true') {
gen.xtextClasspath = rootProject.configurations.getByName('xtendCompiler')
}
sourcesJar {
from (sourceSets.main.xtendOutputDir) {
include '**/*._trace'
}
if (name.endsWith('tests')) {
from (sourceSets.test.xtendOutputDir) {
// 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'
}
}
}
}
}