mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 18:35:25 +00:00
This change removes the project attachment support, and instead relies on x-plugins being checked out under extra-plugins/x-plugins within an elasticsearch checkout. The only real change, other than removing unnecessary code, was to rename the license/core project because gradle project substitution has a bug which causes it to try and use ES core as the substitution. (Unfortunately this is not reproduceable with a simple example, so I have not yet filed an issue with gradle). Original commit: elastic/x-pack-elasticsearch@fa315ffcb5
51 lines
1.6 KiB
Groovy
51 lines
1.6 KiB
Groovy
if (project.name != 'x-plugins') {
|
|
throw new GradleException('You must checkout x-plugins to a directory named x-plugins')
|
|
}
|
|
if (project.projectDir.parentFile.name != 'extra-plugins') {
|
|
throw new GradleException('You must place the x-plugins checkout in a directory named extra-plugins')
|
|
}
|
|
if (project.rootProject.projectDir != project.projectDir.parentFile.parentFile) {
|
|
throw new GradleException('You must place the extra-plugins directory inside the root of an elasticsearch checkout')
|
|
}
|
|
|
|
/*
|
|
<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 ' '
|
|
}
|
|
}
|
|
}
|
|
}
|
|
*/
|