Skip to content

Commit e5e12ca

Browse files
committed
Move plugin to new x-pack home
1 parent bfd2e09 commit e5e12ca

39 files changed

+29
-1
lines changed

settings.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ addSubProjects('', new File(rootProject.projectDir, 'qa'))
155155
addSubProjects('test', new File(rootProject.projectDir, 'test/external-modules'))
156156
addSubProjects('', new File(rootProject.projectDir, 'x-pack'))
157157
addSubProjects('', new File(rootProject.projectDir, 'x-pack/libs'))
158+
addSubProjects('', new File(rootProject.projectDir, 'x-pack/extras/plugins'))
158159

159160
include projects.toArray(new String[0])
160161

@@ -172,4 +173,4 @@ if (extraProjects.exists()) {
172173
}
173174
}
174175

175-
include 'qa:vector'
176+
include 'qa:vector'

x-pack/extras/plugins/build.gradle

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the "Elastic License
4+
* 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side
5+
* Public License v 1"; you may not use this file except in compliance with, at
6+
* your election, the "Elastic License 2.0", the "GNU Affero General Public
7+
* License v3.0 only", or the "Server Side Public License, v 1".
8+
*/
9+
10+
configurations {
11+
allPlugins
12+
}
13+
14+
// only configure immediate children of plugins dir
15+
configure(subprojects.findAll { it.parent.path == project.path }) {
16+
group = 'org.elasticsearch.plugin'
17+
apply plugin: 'elasticsearch.internal-es-plugin'
18+
19+
esplugin {
20+
// for local ES plugins, the name of the plugin is the same as the directory
21+
name = project.name
22+
licenseFile = layout.settingsDirectory.file('licenses/ELASTIC-LICENSE-2.0.txt').asFile
23+
noticeFile = layout.settingsDirectory.file('NOTICE.txt').asFile
24+
}
25+
26+
parent.artifacts.add('allPlugins', tasks.named('bundlePlugin'))
27+
}

0 commit comments

Comments
 (0)