2015-11-11 12:18:24 -05:00
|
|
|
apply plugin: 'elasticsearch.project-attachment'
|
|
|
|
|
2015-10-29 14:44:48 -04:00
|
|
|
allprojects {
|
|
|
|
apply plugin: 'idea'
|
|
|
|
apply plugin: 'eclipse'
|
|
|
|
}
|
|
|
|
|
|
|
|
subprojects {
|
2015-11-10 10:54:19 -05:00
|
|
|
group = 'org.elasticsearch'
|
|
|
|
version = org.elasticsearch.gradle.VersionProperties.elasticsearch
|
2015-11-16 16:04:46 -05:00
|
|
|
|
|
|
|
configurations.all {
|
|
|
|
resolutionStrategy.cacheChangingModulesFor(0, 'seconds')
|
|
|
|
}
|
2015-10-29 14:44:48 -04:00
|
|
|
}
|
2015-11-06 14:00:27 -05:00
|
|
|
|
2015-11-06 17:02:39 -05:00
|
|
|
if (hasProperty('projectsPrefix') == false) {
|
|
|
|
allprojects {
|
|
|
|
project.ext['projectsPrefix'] = ''
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-11-16 15:45:03 -05:00
|
|
|
task clean(type: GradleBuild) {
|
|
|
|
buildFile = 'buildSrc/build.gradle'
|
|
|
|
tasks = ['clean']
|
|
|
|
}
|
|
|
|
|
2015-10-29 14:44:48 -04:00
|
|
|
<repository>
|
|
|
|
<id>elasticsearch-releases</id>
|
|
|
|
<url>http://maven.elasticsearch.org/releases</url>
|
|
|
|
<releases>
|
|
|
|
<enabled>true</enabled>
|
|
|
|
<updatePolicy>daily</updatePolicy>
|
|
|
|
</releases>
|
|
|
|
<snapshots>
|
|
|
|
<enabled>false</enabled>
|
|
|
|
</snapshots>
|
|
|
|
</repository>
|
|
|
|
<repository>
|
|
|
|
<id>elasticsearch-internal-snapshots</id>
|
|
|
|
<url>http://maven.elasticsearch.org/artifactory/internal-snapshots</url>
|
|
|
|
<releases>
|
|
|
|
<enabled>false</enabled>
|
|
|
|
</releases>
|
|
|
|
<snapshots>
|
|
|
|
<enabled>true</enabled>
|
|
|
|
<updatePolicy>always</updatePolicy>
|
|
|
|
</snapshots>
|
|
|
|
</repository>
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
subprojects {
|
|
|
|
task artifacts {
|
|
|
|
group = "Help"
|
|
|
|
description = "Displays the artifacts associated with each configuration of " + project
|
|
|
|
doFirst {
|
|
|
|
configurations.findAll().each { config ->
|
|
|
|
println "${config}:"
|
|
|
|
config.allArtifacts.getFiles().each { file -> println "" + file}
|
|
|
|
println ' '
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
*/
|
|
|
|
|
|
|
|
// ================= Local Elasticsearch attachment ===============
|
2015-11-06 17:02:39 -05:00
|
|
|
if (hasProperty('attachments') && 'elasticsearch' in attachments) {
|
2015-10-29 14:44:48 -04:00
|
|
|
subprojects {
|
|
|
|
configurations {
|
|
|
|
all {
|
|
|
|
resolutionStrategy {
|
|
|
|
dependencySubstitution {
|
|
|
|
substitute module("org.elasticsearch:rest-api-spec:${version}") with project(":elasticsearch:rest-api-spec")
|
|
|
|
substitute module("org.elasticsearch:elasticsearch:${version}") with project(":elasticsearch:core")
|
|
|
|
substitute module("org.elasticsearch:test-framework:${version}") with project(":elasticsearch:test-framework")
|
|
|
|
substitute module("org.elasticsearch.distribution.zip:elasticsearch:${version}") with project(":elasticsearch:distribution:zip")
|
2015-11-06 14:00:27 -05:00
|
|
|
substitute module("org.elasticsearch.distribution.tar:elasticsearch:${version}") with project(":elasticsearch:distribution:tar")
|
2015-10-29 14:44:48 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|