import org.elasticsearch.gradle.ElasticsearchProperties allprojects { apply plugin: 'idea' apply plugin: 'eclipse' } subprojects { project.group = 'org.elasticsearch' project.version = ElasticsearchProperties.version project.ext.luceneVersion = ElasticsearchProperties.luceneVersion repositories { mavenCentral() maven { name 'sonatype-snapshots' url 'http://oss.sonatype.org/content/repositories/snapshots/' } if (luceneVersion.contains('-snapshot')) { String revision = (luceneVersion =~ /\d\.\d\.\d-snapshot-(\d+)/)[0][1] maven { name 'lucene-snapshots' url "http://s3.amazonaws.com/download.elasticsearch.org/lucenesnapshots/${revision}" } } } } if (hasProperty('projectsPrefix') == false) { allprojects { project.ext['projectsPrefix'] = '' } } elasticsearch-releases http://maven.elasticsearch.org/releases true daily false elasticsearch-internal-snapshots http://maven.elasticsearch.org/artifactory/internal-snapshots false true always */ /* 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 =============== if (hasProperty('attachments') && 'elasticsearch' in attachments) { 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") substitute module("org.elasticsearch.distribution.tar:elasticsearch:${version}") with project(":elasticsearch:distribution:tar") } } } } } }