xtext-core/gradle/bootstrap-setup.gradle

35 lines
1,004 B
Groovy
Raw Permalink Normal View History

/*
* Root project configuration that is reused by subprojects to apply the Xtend compiler.
*/
if (!hasProperty('JENKINS_URL')) {
ext.JENKINS_URL = 'https://ci.eclipse.org/xtext'
}
2016-12-22 15:41:45 +00:00
// The repositories to query when constructing the Xtend compiler classpath
repositories {
mavenCentral()
maven {
name 'xtend-bootstrap'
url "$JENKINS_URL/job/xtend-bootstrap/lastStableBuild/artifact/build-result/maven-repository/"
}
2016-12-22 15:41:45 +00:00
}
configurations {
xtendCompiler {
description 'Bootstrap dependencies for the Xtend compiler'
resolutionStrategy {
eachDependency {
if (requested.group == 'org.eclipse.xtext' || requested.group == 'org.eclipse.xtend')
useVersion(versions.xtext_bootstrap)
}
}
exclude group: 'asm'
}
}
dependencies {
xtendCompiler "org.eclipse.xtend:org.eclipse.xtend.core:${versions.xtext_bootstrap}"
xtendCompiler "org.eclipse.xtext:org.eclipse.xtext.smap:${versions.xtext_bootstrap}"
xtendCompiler "org.xtext:xtext-gradle-builder:$versions.xtext_gradle_plugin"
}