mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-24 17:09:48 +00:00
Build: Change gradle run
to use zip distribution (#21001)
When running `gradle run`, a developer usually intends to get a running instance as if they had run elasticsearch from the command line. This is different than the isolated environment we use for integration testing plugins. This change switches the run task to use the zip distribution, so that all modules included in the normal distribution are included.
This commit is contained in:
parent
c2894d2362
commit
dca614aa3b
@ -16,6 +16,7 @@ public class RunTask extends DefaultTask {
|
||||
clusterConfig.httpPort = 9200
|
||||
clusterConfig.transportPort = 9300
|
||||
clusterConfig.daemonize = false
|
||||
clusterConfig.distribution = 'zip'
|
||||
project.afterEvaluate {
|
||||
ClusterFormationTasks.setup(project, this, clusterConfig)
|
||||
}
|
||||
|
@ -25,6 +25,11 @@ subprojects {
|
||||
// for local ES plugins, the name of the plugin is the same as the directory
|
||||
name project.name
|
||||
}
|
||||
|
||||
run {
|
||||
// these cannot be run with the normal distribution, since they are included in it!
|
||||
distribution = 'integ-test-zip'
|
||||
}
|
||||
|
||||
if (project.file('src/main/packaging').exists()) {
|
||||
throw new InvalidModelException("Modules cannot contain packaging files")
|
||||
|
Loading…
x
Reference in New Issue
Block a user