|
@@ -20,7 +20,8 @@ subprojects {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- group = 'org.elasticsearch.plugin'
|
|
|
+ group = xpackProjectGroup(path)
|
|
|
+
|
|
|
// helper method to find the path to a module
|
|
|
ext.xpackModule = { String moduleName -> ":x-pack:plugin:${moduleName}" }
|
|
|
|
|
@@ -43,3 +44,13 @@ subprojects {
|
|
|
project.ext.noticeFile.set(xpackRootProject.file('NOTICE.txt'))
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+// helper method to calculate unique group id for qa projects and
|
|
|
+// use org.elasticsearch.plugin for all productive projects
|
|
|
+// generates e.g. for path `x-pack:plugin:ccr:qa:rest` the project group id `org.elasticsearch.plugin.ccr.qa`
|
|
|
+def xpackProjectGroup(String path) {
|
|
|
+ return path.contains(":qa:") ?
|
|
|
+ 'org.elasticsearch' + path.substring(":x-pack".length(), path.lastIndexOf(":")).replace(":", ".") :
|
|
|
+ 'org.elasticsearch.plugin'
|
|
|
+}
|
|
|
+
|