2016-11-22 15:35:07 +00:00
|
|
|
/*
|
|
|
|
* Root project configuration that is reused by subprojects to apply the Xtend compiler.
|
|
|
|
*/
|
2018-05-29 11:00:11 +00:00
|
|
|
if (!hasProperty('JENKINS_URL')) {
|
2019-04-02 09:52:11 +00:00
|
|
|
ext.JENKINS_URL = 'https://ci.eclipse.org/xtext'
|
2018-05-29 11:00:11 +00:00
|
|
|
}
|
2016-11-22 15:35:07 +00:00
|
|
|
|
2016-12-22 15:41:45 +00:00
|
|
|
// The repositories to query when constructing the Xtend compiler classpath
|
|
|
|
repositories {
|
2019-04-01 15:32:13 +00:00
|
|
|
mavenCentral()
|
2017-01-02 10:47:11 +00:00
|
|
|
maven {
|
|
|
|
name 'xtend-bootstrap'
|
2018-05-29 11:00:11 +00:00
|
|
|
url "$JENKINS_URL/job/xtend-bootstrap/lastStableBuild/artifact/build-result/maven-repository/"
|
2017-01-02 10:47:11 +00:00
|
|
|
}
|
2016-12-22 15:41:45 +00:00
|
|
|
}
|
|
|
|
|
2016-11-22 15:35:07 +00:00
|
|
|
configurations {
|
|
|
|
xtendCompiler {
|
|
|
|
description 'Bootstrap dependencies for the Xtend compiler'
|
|
|
|
resolutionStrategy {
|
|
|
|
eachDependency {
|
|
|
|
if (requested.group == 'org.eclipse.xtext' || requested.group == 'org.eclipse.xtend')
|
2018-09-21 16:12:05 +00:00
|
|
|
useVersion(versions.xtext_bootstrap)
|
2016-11-22 15:35:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
exclude group: 'asm'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2018-09-21 16:12:05 +00:00
|
|
|
xtendCompiler "org.eclipse.xtend:org.eclipse.xtend.core:${versions.xtext_bootstrap}"
|
|
|
|
xtendCompiler "org.eclipse.xtext:org.eclipse.xtext.smap:${versions.xtext_bootstrap}"
|
2017-01-11 14:53:40 +00:00
|
|
|
xtendCompiler "org.xtext:xtext-gradle-builder:$versions.xtext_gradle_plugin"
|
2016-11-22 15:35:07 +00:00
|
|
|
}
|