Fix skipping install/upload for x-plugins to actually work

Original commit: elastic/x-pack-elasticsearch@39eb2f5c0f
This commit is contained in:
Ryan Ernst 2016-02-04 13:21:18 -08:00
parent 7e8bbe8f28
commit 1e315d5e85

View File

@ -4,9 +4,11 @@ if (project.projectDir.name != 'x-plugins') {
subprojects {
// we must not publish to sonatype until we have set up x-plugins to only publish the parts we want to publish!
if (project.plugins.hasPlugin('com.bmuschko.nexus')) {
install.enabled = false
uploadArchives.enabled = false
project.afterEvaluate {
if (project.plugins.hasPlugin('com.bmuschko.nexus')) {
install.enabled = false
uploadArchives.enabled = false
}
}
}