Skip to content

Commit 9b1a28b

Browse files
committed
Merge branch '6.x' into ccr-6.x
* 6.x: (41 commits) Rename core module to server (#28190) [Test] Remove superfluous lines [Test] Add skip test for index range field with null values upgraded jna from 4.4.0-1 to 4.5.1 (#28183) [TEST] Do not call RandomizedTest.scaledRandomIntBetween from multiple threads [Docs] Correct response json in rank-eval.asciidoc Fix environment variable substitutions in list setting (#28106) Add scroll parameter to _reindex API (#28041) Include all sentences smaller than fragment_size in the unified highlighter (#28132) [Docs] Improvements in script-fields.asciidoc (#28174) [Docs] Remove Kerberos/SPNEGO Shield plugin (#28019) Ignore null value for range field (#27845) (#28116) docs: Replaces indexed script java api docs with stored script api docs test: ensure we endup with a single segment Make sure that we don't detect files as maven coordinate when installing a plugin (#28163) [Tests] temporary disable meta plugin rest tests #28163 meta-plugin should install bin and config at the top level (#28162) Painless: Add public member read/write access test. (#28156) Docs: Clarify password protection support with keystore (#28157) [Docs] fix plugin properties inclusion for plugins authors ...
2 parents 9f2fbd0 + 04e0e3c commit 9b1a28b

File tree

4,717 files changed

+2939
-1284
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,717 files changed

+2939
-1284
lines changed

build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ configure(subprojects.findAll { it.projectDir.toPath().startsWith(rootPath) }) {
7979
* backwards compatibility guarantees and only keeping the latest beta or rc
8080
* in a branch if there are only betas and rcs in the branch so we have
8181
* *something* to test against. */
82-
VersionCollection versions = new VersionCollection(file('core/src/main/java/org/elasticsearch/Version.java').readLines('UTF-8'))
82+
VersionCollection versions = new VersionCollection(file('server/src/main/java/org/elasticsearch/Version.java').readLines('UTF-8'))
8383
if (versions.currentVersion.toString() != VersionProperties.elasticsearch) {
8484
throw new GradleException("The last version in Versions.java [${versions.currentVersion}] does not match " +
8585
"VersionProperties.elasticsearch [${VersionProperties.elasticsearch}]")
@@ -181,8 +181,8 @@ subprojects {
181181
ext.projectSubstitutions = [
182182
"org.elasticsearch.gradle:build-tools:${version}": ':build-tools',
183183
"org.elasticsearch:rest-api-spec:${version}": ':rest-api-spec',
184-
"org.elasticsearch:elasticsearch:${version}": ':core',
185-
"org.elasticsearch:elasticsearch-cli:${version}": ':core:cli',
184+
"org.elasticsearch:elasticsearch:${version}": ':server',
185+
"org.elasticsearch:elasticsearch-cli:${version}": ':server:cli',
186186
"org.elasticsearch.client:elasticsearch-rest-client:${version}": ':client:rest',
187187
"org.elasticsearch.client:elasticsearch-rest-client-sniffer:${version}": ':client:sniffer',
188188
"org.elasticsearch.client:elasticsearch-rest-high-level-client:${version}": ':client:rest-high-level',
@@ -226,7 +226,7 @@ subprojects {
226226

227227
// Handle javadoc dependencies across projects. Order matters: the linksOffline for
228228
// org.elasticsearch:elasticsearch must be the last one or all the links for the
229-
// other packages (e.g org.elasticsearch.client) will point to core rather than
229+
// other packages (e.g org.elasticsearch.client) will point to server rather than
230230
// their own artifacts.
231231
if (project.plugins.hasPlugin(BuildPlugin)) {
232232
String artifactsHost = VersionProperties.elasticsearch.endsWith("-SNAPSHOT") ? "https://snapshots.elastic.co" : "https://artifacts.elastic.co"
@@ -254,7 +254,7 @@ subprojects {
254254
gradle.projectsEvaluated {
255255
allprojects {
256256
if (project.path == ':test:framework') {
257-
// :test:framework:test cannot run before and after :core:test
257+
// :test:framework:test cannot run before and after :server:test
258258
return
259259
}
260260
configurations.all {

buildSrc/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ dependencies {
9696
compile 'com.perforce:p4java:2012.3.551082' // THIS IS SUPPOSED TO BE OPTIONAL IN THE FUTURE....
9797
compile 'de.thetaphi:forbiddenapis:2.4.1'
9898
compile 'org.apache.rat:apache-rat:0.11'
99-
compile "org.elasticsearch:jna:4.4.0-1"
99+
compile "org.elasticsearch:jna:4.5.1"
100100
}
101101

102102
// Gradle 2.14+ removed ProgressLogger(-Factory) classes from the public APIs

buildSrc/src/main/groovy/org/elasticsearch/gradle/BuildPlugin.groovy

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import org.gradle.api.Project
3232
import org.gradle.api.Task
3333
import org.gradle.api.XmlProvider
3434
import org.gradle.api.artifacts.Configuration
35+
import org.gradle.api.artifacts.Dependency
3536
import org.gradle.api.artifacts.ModuleDependency
3637
import org.gradle.api.artifacts.ModuleVersionIdentifier
3738
import org.gradle.api.artifacts.ProjectDependency
@@ -274,8 +275,9 @@ class BuildPlugin implements Plugin<Project> {
274275
})
275276

276277
// force all dependencies added directly to compile/testCompile to be non-transitive, except for ES itself
277-
Closure disableTransitiveDeps = { ModuleDependency dep ->
278-
if (!(dep instanceof ProjectDependency) && dep.group.startsWith('org.elasticsearch') == false) {
278+
Closure disableTransitiveDeps = { Dependency dep ->
279+
if (dep instanceof ModuleDependency && !(dep instanceof ProjectDependency)
280+
&& dep.group.startsWith('org.elasticsearch') == false) {
279281
dep.transitive = false
280282

281283
// also create a configuration just for this dependency version, so that later

buildSrc/src/main/groovy/org/elasticsearch/gradle/DependenciesInfoTask.groovy

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public class DependenciesInfoTask extends DefaultTask {
8888
* <u>
8989
* <li><em>UNKNOWN</em> if LICENSE file is not present for this dependency.</li>
9090
* <li><em>one SPDX identifier</em> if the LICENSE content matches with an SPDX license.</li>
91-
* <li><em>Custom:URL</em> if it's not an SPDX license,
91+
* <li><em>Custom;URL</em> if it's not an SPDX license,
9292
* URL is the Github URL to the LICENSE file in elasticsearch repository.</li>
9393
* </ul>
9494
*
@@ -116,7 +116,7 @@ public class DependenciesInfoTask extends DefaultTask {
116116
// As we have the license file, we create a Custom entry with the URL to this license file.
117117
final gitBranch = System.getProperty('build.branch', 'master')
118118
final String githubBaseURL = "https://raw.githubusercontent.com/elastic/elasticsearch/${gitBranch}/"
119-
return "Custom:${license.getCanonicalPath().replaceFirst('.*/elasticsearch/', githubBaseURL)}"
119+
return "Custom;${license.getCanonicalPath().replaceFirst('.*/elasticsearch/', githubBaseURL)}"
120120
}
121121
return spdx
122122
} else {
@@ -156,10 +156,10 @@ public class DependenciesInfoTask extends DefaultTask {
156156
spdx = 'LGPL-3.0'
157157
break
158158
case ~/.*${CDDL_1_0}.*/:
159-
spdx = 'CDDL_1_0'
159+
spdx = 'CDDL-1.0'
160160
break
161161
case ~/.*${CDDL_1_1}.*/:
162-
spdx = 'CDDL_1_1'
162+
spdx = 'CDDL-1.1'
163163
break
164164
case ~/.*${ICU}.*/:
165165
spdx = 'ICU'

buildSrc/src/main/groovy/org/elasticsearch/gradle/precommit/PrecommitTasks.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class PrecommitTasks {
8484
Task mainForbidden = project.tasks.findByName('forbiddenApisMain')
8585
if (mainForbidden != null) {
8686
mainForbidden.configure {
87-
signaturesURLs += getClass().getResource('/forbidden/es-core-signatures.txt')
87+
signaturesURLs += getClass().getResource('/forbidden/es-server-signatures.txt')
8888
}
8989
}
9090
Task testForbidden = project.tasks.findByName('forbiddenApisTest')

buildSrc/src/main/groovy/org/elasticsearch/gradle/vagrant/VagrantTestPlugin.groovy

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package org.elasticsearch.gradle.vagrant
22

33
import com.carrotsearch.gradle.junit4.RandomizedTestingPlugin
4+
import org.apache.tools.ant.taskdefs.condition.Os
45
import org.elasticsearch.gradle.FileContentsTask
56
import org.gradle.api.*
67
import org.gradle.api.artifacts.dsl.RepositoryHandler
@@ -343,8 +344,9 @@ class VagrantTestPlugin implements Plugin<Project> {
343344
TaskExecutionAdapter packagingReproListener = new TaskExecutionAdapter() {
344345
@Override
345346
void afterExecute(Task task, TaskState state) {
347+
final String gradlew = Os.isFamily(Os.FAMILY_WINDOWS) ? "gradlew" : "./gradlew"
346348
if (state.failure != null) {
347-
println "REPRODUCE WITH: ./gradlew ${packaging.path} " +
349+
println "REPRODUCE WITH: ${gradlew} ${packaging.path} " +
348350
"-Dtests.seed=${project.testSeed} "
349351
}
350352
}

0 commit comments

Comments
 (0)