Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
155 commits
Select commit Hold shift + click to select a range
87c910b
Better Incrementality for Snapshots of Unchanged Shards (#52182)
original-brownbear Mar 23, 2020
face375
/_cat/shards support path stats (#53461)
weizijun Mar 23, 2020
3ceb60b
Add async_search get and delete APIs to HLRC (#53828)
Mar 23, 2020
b2a6bd8
lang-expressions should use DoubleValuesSource, not ValueSource (#53661)
romseygeek Mar 23, 2020
0ad4f52
Increase ensureGreen() timeout in CloseWhileRelocatingShardsIT (#53981)
tlrx Mar 23, 2020
33612b0
Integrate search with reader contexts
dnhatn Mar 20, 2020
975d4f5
Don't include HLRC on downstream classpath twice (#53983)
mark-vieira Mar 23, 2020
1ca52fc
Try to save memory on aggregations (#53793)
nik9000 Mar 23, 2020
b186153
fix yaml test
dnhatn Mar 23, 2020
8264bdd
Revert "Introduce system index APIs for Kibana (#52385)" (#53912)
rjernst Mar 23, 2020
34feb3c
[DOCS] Clarify routing enforcement in docs (#53945)
cjcjameson Mar 23, 2020
78f473d
[ML] Fix typo in outlier detection timing stats (#53988)
dimitris-athanasiou Mar 23, 2020
7665993
[ML] Delete DF analytics stats upon job deletion (#53933)
dimitris-athanasiou Mar 23, 2020
bad7580
[DOCS] Add generated_dest_index to preview transform API (#53905)
lcawl Mar 23, 2020
0ea4324
[DOCS] Adds data nanos transform limitation (#53826)
lcawl Mar 23, 2020
65a4fea
check keep alive limit for scroll requests
dnhatn Mar 23, 2020
9439e22
stylecheck
dnhatn Mar 23, 2020
ea33795
[DOCS] Fixes formatting in transform overview (#53900)
lcawl Mar 23, 2020
de1229c
[DOCS] link fix (#53973)
immon Mar 23, 2020
f783670
Verify that the field is aggregatable before attempting cardinality a…
przemekwitek Mar 23, 2020
f6a11b8
fix hlrc test
dnhatn Mar 23, 2020
20d861c
Add logging and enable testQueryRewrite (#53809)
mayya-sharipova Mar 23, 2020
04bd154
Add heuristics to compute pre_filter_shard_size when unspecified (#53…
jimczi Mar 23, 2020
8d4ff29
Add nori_number token filter in analysis-nori (#53583)
danmuzi Mar 23, 2020
ffbb558
Re-enable bwc tests disabled from #53912 (#54001)
rjernst Mar 23, 2020
569dffc
Move pipeline agg validation to coordinating node (#53669)
nik9000 Mar 23, 2020
2a99f4e
[ML] adjusting feature importance mapping for multi-class support (#5…
benwtrent Mar 23, 2020
cdc377e
Reduce performance impact of ExitableDirectoryReader (#53978)
matriv Mar 23, 2020
4af4eb9
Introduce aarch64 Docker image (#53936)
jasontedor Mar 23, 2020
0d7b4ee
Fix typo in jdk-download testKit build.gradle
jasontedor Mar 23, 2020
a5422ef
skip reader context yaml tests
dnhatn Mar 23, 2020
91462ee
Fix aarch64 OSS archive packaging
jasontedor Mar 23, 2020
7161bd4
Remove the top-level 'mapping type' section. (#53374)
jtibshirani Mar 23, 2020
e98b9c0
Add scripting, unmapped, supported-type tests to Boxplot (#53435)
polyfractal Mar 23, 2020
da9273a
[Transform][Rollup] add processing stats to record the time sp… (#53770)
Mar 23, 2020
ec4c699
Prevent SigTerms/SigText from running on fields they do not support (…
polyfractal Mar 23, 2020
1016e20
Prepare to backport #53793 (#54010)
nik9000 Mar 23, 2020
586f4b7
Clarify IntelliJ import instructions
mark-vieira Mar 23, 2020
ecdbd37
Refactor global build info plugin to leverage JavaInstallationRegistr…
mark-vieira Mar 23, 2020
756a297
[ML] adds multi-class feature importance support (#53803)
benwtrent Mar 23, 2020
9b47ac7
Use deprecation logger holder in byte size value (#53928)
jasontedor Mar 23, 2020
747a164
[DOCS] Fix "letter case" typo
jrodewig Mar 23, 2020
0a35f39
[DOCS] Remove double space in WDG docs
jrodewig Mar 23, 2020
39785eb
[ML] Data frame analytics data counts (#53998)
dimitris-athanasiou Mar 23, 2020
ba431a0
Fix classifier on OSS Linux aarch64 archive
jasontedor Mar 23, 2020
c5d0731
Give helpful message on remote connections disabled (#53690)
jasontedor Mar 23, 2020
a8b5926
disable bwc
dnhatn Mar 23, 2020
83e82d3
Merge analyze and write phases in Painless "user" tree (#53685)
jdconrad Mar 23, 2020
0bce5d2
Reenable BWC tests after backport of #53793 (#54018)
nik9000 Mar 23, 2020
d0cd387
Remove ceremony declaring aggs (#53990)
nik9000 Mar 23, 2020
1ec3127
Prepare to backport #53873 (#54040)
nik9000 Mar 24, 2020
50e8136
adapt version after backport (#54009)
jimczi Mar 24, 2020
408311d
add tests to StatsAggregatorTests (#53768)
andyb-elastic Mar 24, 2020
f39aa75
Use onlyIf for build Docker image task execution (#54047)
jasontedor Mar 24, 2020
94e81b0
Introduce autoscaling decisions (#53934)
jasontedor Mar 24, 2020
7989d67
Deprecate alternatives to the hot threads API (#52930)
muachilin Mar 24, 2020
b56b9fb
Mute BlobStoreIncrementalityIT.testIncrementalBehaviorOnPrimaryFailover
mark-vieira Mar 23, 2020
4ff4233
Fix nasty errors when importing into IntelliJ
mark-vieira Mar 24, 2020
20736b2
Add remote debug run configuration for IntelliJ
mark-vieira Mar 24, 2020
f9526f9
Add supported-type tests to avg aggregation (#54011)
csoulios Mar 24, 2020
d046489
Validate role templates before saving role mapping (#52636)
ywangd Mar 24, 2020
6b5752a
Re-enable bwc tests (#54045)
jimczi Mar 24, 2020
894714e
[Transform] add another reason for disabling BWC (#54054)
Mar 24, 2020
f4bdcd9
[ML] Mute data frame analytics BWC tests (#54030)
dimitris-athanasiou Mar 24, 2020
ff067e1
Fix BlobStoreIncrementalityIT (#54055)
original-brownbear Mar 24, 2020
9a64ae0
Mute IndicesRequestCacheIT#testQueryRewrite
albertzaharovits Mar 24, 2020
5e637c4
Add supported type tests to min aggregation (#54021)
csoulios Mar 24, 2020
2537e02
Wildcard field - add normalizer support (#53851)
markharwood Mar 24, 2020
077ffa2
[Transform ] reenable BWC after backport (#54061)
Mar 24, 2020
cbe063a
[ML] Introduce a "starting" datafeed state for lazy jobs (#53918)
Mar 24, 2020
4cf1d1a
[ML] No refresh on indexing DFA stats (#53977)
dimitris-athanasiou Mar 24, 2020
3ef69ad
[ML] Unmute DFA bwc tests after backport of #53998 (#54063)
dimitris-athanasiou Mar 24, 2020
aed8ce7
Cluster state and CRUD operations for data streams (#53877)
danhermann Mar 24, 2020
68f4297
Improve async search's tasks cancellation (#53799)
jimczi Mar 24, 2020
36377d7
Add validation for component templates (#54023)
probakowski Mar 24, 2020
04c21af
Clean up IndexTemplateMetaData xcontent serialization (#54003)
romseygeek Mar 24, 2020
b5db965
SQL: jdbc debugging enhancement (#53880)
astefan Mar 24, 2020
9927864
Use the new ML state index name (.ml-state-000001) instead of the leg…
przemekwitek Mar 24, 2020
609b064
Wait for Active license before running CCR API tests (#53966)
tlrx Mar 24, 2020
c1d8341
Add SAML IdP plugin for internal use (#54046)
tvernum Mar 24, 2020
8ee2ee5
Revert "Clean up IndexTemplateMetaData xcontent serialization (#54003)"
romseygeek Mar 24, 2020
a371113
Upgrade to lucene 8.5.0 release (#54077)
romseygeek Mar 24, 2020
6b82254
release scrol when keep_alive is invalid
dnhatn Mar 24, 2020
c576488
[DOCS] Replace outdated Logstash monitoring link (#54032)
karenzone Mar 24, 2020
8de3935
authorize clear reader
dnhatn Mar 24, 2020
a8a7f10
Reenable Incorrectly Muted GCS Test (#54078)
original-brownbear Mar 24, 2020
808a76b
[DOCS] Correct DFI docs regarding stop word removal (#53836)
iorixxx Mar 24, 2020
81d8510
Unmute data stream YML tests
danhermann Mar 24, 2020
047eb3e
fix max keep_alive
dnhatn Mar 24, 2020
af7b95b
[ML] Stratified cross validation split for classification (#54087)
dimitris-athanasiou Mar 24, 2020
41ba993
[APM] Allow kibana to collect APM telemetry in background task (#52917)
ogupte Mar 24, 2020
c5a3295
Async search response: output start and expiration time as time field…
javanna Mar 24, 2020
8c29035
Async search: prevent users from overriding pre_filter_shard_size (#5…
javanna Mar 24, 2020
895b160
Use special XContent registry for node tool (#54050)
ywelsch Mar 24, 2020
6d46033
EQL: Fix custom scripting for functions (#53935)
costin Mar 24, 2020
c94be58
Revert "Use Azure Bulk Deletes in Azure Repository (#53919)" (#54089)
original-brownbear Mar 24, 2020
51c1030
[DOCS] Adds transform security privileges (#53908)
lcawl Mar 24, 2020
5ad9836
Reduce log level for pipeline failure (#54097)
DaveCTurner Mar 24, 2020
54b6872
Fix ShardSearchRequest cache key (#54071)
jimczi Mar 24, 2020
aa141c0
Upgrade GCS Dependency to 1.106.0 (#54092)
original-brownbear Mar 24, 2020
2f9e5fa
Allow proxy mode server name to be updated (#54107)
Tim-Brooks Mar 24, 2020
f38b7d7
EQL: Add back removed test
costin Mar 24, 2020
ef27430
add tests to StringStatsAggregatorTests (#54033)
andyb-elastic Mar 24, 2020
fe24848
Update the HDFS version used by HDFS Repo (#53693)
jbaiera Mar 24, 2020
197894a
EQL: Remove parser handling for functions (#54028)
rw-access Mar 24, 2020
2a67bee
Reindex negative TimeValue fix (#54057)
henningandersen Mar 24, 2020
8ee7705
[ML] Add a model memory estimation endpoint for anomaly detection (#5…
Mar 24, 2020
1fc0432
Introduce formal role for remote cluster client (#53924)
jasontedor Mar 24, 2020
f301f49
Avoid I/O operations when rewriting shard search request (#54044)
jimczi Mar 24, 2020
76ea779
Enable auto restart on debug elasticsearch run configuration
mark-vieira Mar 24, 2020
bd10e82
Upgrade Gradle Enterprise plugin to 3.2 (#54137)
mark-vieira Mar 25, 2020
53f44e0
Upgrade Tika to 1.24 (#54130)
jkakavas Mar 25, 2020
985ed66
Mute ReadActionsTests (#54152)
tlrx Mar 25, 2020
a681dbc
Fix BlobStoreIncrementalityIT Assertion (#54149)
original-brownbear Mar 25, 2020
ecb071c
Mute TransportSearchActionTests.testShouldPreFilterSearchShards (#54157)
tlrx Mar 25, 2020
769aae0
Fix off-by one error in TransportSearchActionTests
jimczi Mar 25, 2020
e6c6d7a
[ML] relaxing parameters on stratified split test (#54127)
benwtrent Mar 25, 2020
6ded3e9
[ML] Unmute classification cardinality integ test (#54165)
dimitris-athanasiou Mar 25, 2020
c02e087
Cleanup after DockerTests suite completes (#54164)
pugnascotia Mar 25, 2020
52e8f6d
[DOCS] Document missing data types for node stats API's response para…
jrodewig Mar 25, 2020
16d10aa
Fix ClusterHealthIT.testHealthOnMasterFailover (#54170)
original-brownbear Mar 25, 2020
e8c54c7
Save a little space in agg tree (#53730)
nik9000 Mar 25, 2020
4f503bf
[DOCS] Reformat `keyword_marker` token filter (#54076)
jrodewig Mar 25, 2020
8493b67
Avoid StackOverflowError if write circular reference exception (#54147)
dnhatn Mar 25, 2020
dc0d35e
Delegate toXContent logic from ClusterState to its member classes #48…
zacharymorn Mar 25, 2020
ddd068a
Encore consistent compile options across all projects (#54120)
mark-vieira Mar 25, 2020
a8f3311
Fix small typo in SearchService#executeQueryPhase
jimczi Mar 25, 2020
fbe1737
Document known features on rest-api-spec tests (#52916)
Mpdreamz Mar 25, 2020
cbe4eaf
Data stream should refer to the backing indices using the org.elastic…
martijnvg Mar 25, 2020
f91d8ee
[DOCS] EQL: Document `substring` function (#53867)
jrodewig Mar 25, 2020
7e22ae4
Mute IndexFollowingIT.testUpdateAnalysisLeaderIndexSettings (#54205)
tlrx Mar 25, 2020
9f6dda9
Add version 7.8.0
bpintea Mar 25, 2020
0a98904
transform.cat should live in the cat namespace. (#54196)
Mpdreamz Mar 25, 2020
6d6227a
Create set-based interface for NodesInfoRequest (#53410)
williamrandolph Mar 25, 2020
995bed2
[Transform] fix transform failure case for percentiles and spa… (#54202)
Mar 25, 2020
202b4fb
[Transform] Remove node.attr.transform.remote_connect and use new rem…
benwtrent Mar 25, 2020
6fceef7
[DOCS] Augments cat transforms API (#53776)
lcawl Mar 25, 2020
53c6278
Reenable BWC after backporting #53730 (#54230)
nik9000 Mar 25, 2020
513985e
Remove the cluster.remote.connect setting (#54175)
jasontedor Mar 25, 2020
519c8c4
Remove netty BytesReference implementations (#54025)
Tim-Brooks Mar 25, 2020
6c29bf3
Upgrade to Gradle 6.3 (#53499)
mark-vieira Mar 25, 2020
0bee3f7
Invert license security disabled helper method (#54043)
rjernst Mar 25, 2020
fd54cb0
Define lifecycle tasks for running different types of packaging tests…
mark-vieira Mar 25, 2020
c07bc3d
Improve stability of SamlServiceProviderIndexTests (#54166)
tvernum Mar 26, 2020
8db51cd
Fix boolean enabled logic in xpack usage test
rjernst Mar 26, 2020
f943100
Fix wildcard imports
rjernst Mar 26, 2020
e8e8b16
Allow keystore add to handle multiple settings (#54229)
jasontedor Mar 26, 2020
e244a3b
Check authentication type using enum instead of string (#54145)
ywangd Mar 26, 2020
c120388
Complete keystore CLI options documentation (#54242)
jasontedor Mar 26, 2020
18843a0
Allow keystore add-file to handle multiple settings (#54240)
jasontedor Mar 26, 2020
cdf2725
Retry in SnapshotIT Snapshot Abort (#54195)
original-brownbear Mar 26, 2020
a65e95e
[DOCS] Adds feature importance mapping subsection to inference proces…
szabosteve Mar 26, 2020
1c48214
Async search: rename REST parameters (#54198)
javanna Mar 26, 2020
0a34b71
Schedule commands in current thread context (#54187)
ywelsch Mar 26, 2020
80265eb
Merge branch 'master' into pr/53989
jimczi Mar 26, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .ci/bwcVersions
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ BWC_VERSION:
- "7.6.1"
- "7.6.2"
- "7.7.0"
- "7.8.0"
- "8.0.0"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ out/
# include shared intellij config
!.idea/scopes/x_pack.xml
!.idea/inspectionProfiles/Project_Default.xml
!.idea/runConfigurations/Debug_Elasticsearch.xml

# These files are generated in the main tree by IntelliJ
benchmarks/src/main/generated/*
Expand Down
11 changes: 11 additions & 0 deletions .idea/runConfigurations/Debug_Elasticsearch.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,6 @@ be used to test against other JDKs as well, this is not only limited to JDK 11.
> Note: It is also required to have `JAVA8_HOME`, `JAVA9_HOME`, `JAVA10_HOME`
and `JAVA11_HOME`, and `JAVA12_HOME` available so that the tests can pass.

> Warning: do not use `sdkman` for Java installations which do not have proper
`jrunscript` for jdk distributions.

Elasticsearch uses the Gradle wrapper for its build. You can execute Gradle
using the wrapper via the `gradlew` script on Unix systems or `gradlew.bat`
script on Windows in the root of the repository. The examples below show the
Expand All @@ -125,10 +122,13 @@ You can access Elasticsearch with:

### Importing the project into IntelliJ IDEA

Elasticsearch builds using Java 13. Before importing into IntelliJ you will need
Elasticsearch builds using Java 13. When importing into IntelliJ you will need
to define an appropriate SDK. The convention is that **this SDK should be named
"13"** so that the project import will detect it automatically. For more details
on defining an SDK in IntelliJ please refer to [their documentation](https://www.jetbrains.com/help/idea/sdk.html#define-sdk).
SDK definitions are global, so you can add the JDK from any project, or after
project import. Importing with a missing JDK will still work, IntelliJ will
simply report a problem and will refuse to build until resolved.

You can import the Elasticsearch project into IntelliJ IDEA via:

Expand Down
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import org.gradle.plugins.ide.eclipse.model.SourceFolder
import org.gradle.util.DistributionLocator
import org.gradle.util.GradleVersion

import static org.elasticsearch.gradle.tool.Boilerplate.maybeConfigure
import static org.elasticsearch.gradle.util.GradleUtils.maybeConfigure

plugins {
id 'lifecycle-base'
Expand Down Expand Up @@ -222,8 +222,8 @@ task verifyVersions {
* after the backport of the backcompat code is complete.
*/

boolean bwc_tests_enabled = true
final String bwc_tests_disabled_issue = "" /* place a PR link here when committing bwc changes */
boolean bwc_tests_enabled = false
final String bwc_tests_disabled_issue = "https://github.com/elastic/elasticsearch/pull/53989" /* place a PR link here when committing bwc changes */
if (bwc_tests_enabled == false) {
if (bwc_tests_disabled_issue.isEmpty()) {
throw new GradleException("bwc_tests_disabled_issue must be set when bwc_tests_enabled == false")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import org.elasticsearch.gradle.precommit.PrecommitTasks
import org.elasticsearch.gradle.test.ErrorReportingTestListener
import org.elasticsearch.gradle.testclusters.ElasticsearchCluster
import org.elasticsearch.gradle.testclusters.TestClustersPlugin
import org.elasticsearch.gradle.tool.Boilerplate
import org.elasticsearch.gradle.util.GradleUtils
import org.gradle.api.Action
import org.gradle.api.GradleException
import org.gradle.api.InvalidUserDataException
Expand Down Expand Up @@ -82,7 +82,7 @@ import org.gradle.util.GradleVersion
import java.nio.charset.StandardCharsets
import java.nio.file.Files

import static org.elasticsearch.gradle.tool.Boilerplate.maybeConfigure
import static org.elasticsearch.gradle.util.GradleUtils.maybeConfigure

/**
* Encapsulates build configuration for elasticsearch projects.
Expand Down Expand Up @@ -148,7 +148,7 @@ class BuildPlugin implements Plugin<Project> {
File securityPolicy = buildResources.copy("fips_java.policy")
File bcfksKeystore = buildResources.copy("cacerts.bcfks")
// This configuration can be removed once system modules are available
Boilerplate.maybeCreate(project.configurations, 'extraJars') {
GradleUtils.maybeCreate(project.configurations, 'extraJars') {
project.dependencies.add('extraJars', "org.bouncycastle:bc-fips:1.0.1")
project.dependencies.add('extraJars', "org.bouncycastle:bctls-fips:1.0.9")
}
Expand Down Expand Up @@ -235,7 +235,7 @@ class BuildPlugin implements Plugin<Project> {
static String getJavaHome(final Task task, final int version) {
requireJavaHome(task, version)
JavaHome java = BuildParams.javaVersions.find { it.version == version }
return java == null ? null : java.javaHome.absolutePath
return java == null ? null : java.javaHome.get().absolutePath
}

/**
Expand Down Expand Up @@ -453,7 +453,9 @@ class BuildPlugin implements Plugin<Project> {

project.pluginManager.withPlugin('com.github.johnrengelman.shadow') {
// Ensure that when we are compiling against the "original" JAR that we also include any "shadow" dependencies on the compile classpath
project.configurations.getByName(JavaPlugin.API_ELEMENTS_CONFIGURATION_NAME).extendsFrom(project.configurations.getByName(ShadowBasePlugin.CONFIGURATION_NAME))
project.configurations.getByName(ShadowBasePlugin.CONFIGURATION_NAME).dependencies.all { Dependency dependency ->
project.configurations.getByName(JavaPlugin.API_ELEMENTS_CONFIGURATION_NAME).dependencies.add(dependency)
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,16 +143,13 @@ class PrecommitTasks {
ExportElasticsearchBuildResourcesTask buildResources = project.tasks.getByName('buildResources')
project.tasks.withType(CheckForbiddenApis).configureEach {
dependsOn(buildResources)
doFirst {
// we need to defer this configuration since we don't know the runtime java version until execution time
targetCompatibility = BuildParams.runtimeJavaVersion.majorVersion
if (BuildParams.runtimeJavaVersion > JavaVersion.VERSION_13) {
project.logger.warn(
"Forbidden APIs does not support Java versions past 13. Will use the signatures from 13 for {}.",
BuildParams.runtimeJavaVersion
)
targetCompatibility = JavaVersion.VERSION_13.majorVersion
}
targetCompatibility = BuildParams.runtimeJavaVersion.majorVersion
if (BuildParams.runtimeJavaVersion > JavaVersion.VERSION_13) {
project.logger.warn(
"Forbidden APIs does not support Java versions past 13. Will use the signatures from 13 for {}.",
BuildParams.runtimeJavaVersion
)
targetCompatibility = JavaVersion.VERSION_13.majorVersion
}
bundledSignatures = [
"jdk-unsafe", "jdk-deprecated", "jdk-non-portable", "jdk-system-out"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,11 @@ import org.gradle.api.InvalidUserDataException
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.artifacts.Configuration
import org.gradle.api.plugins.ExtraPropertiesExtension
import org.gradle.api.plugins.JavaBasePlugin
import org.gradle.api.plugins.JavaPlugin
import org.gradle.api.plugins.JavaPluginExtension
import org.gradle.api.tasks.SourceSet
import org.gradle.api.tasks.SourceSetContainer
import org.gradle.api.tasks.compile.JavaCompile
import org.gradle.api.tasks.testing.Test
import org.gradle.plugins.ide.eclipse.model.EclipseModel
import org.gradle.plugins.ide.idea.model.IdeaModel
Expand Down Expand Up @@ -67,8 +65,8 @@ class StandaloneRestTestPlugin implements Plugin<Project> {
BuildPlugin.configureTestTasks(project)
BuildPlugin.configureInputNormalization(project)
BuildPlugin.configureFips140(project)
BuildPlugin.configureCompile(project)

ExtraPropertiesExtension ext = project.extensions.getByType(ExtraPropertiesExtension)
project.extensions.getByType(JavaPluginExtension).sourceCompatibility = BuildParams.minimumRuntimeVersion
project.extensions.getByType(JavaPluginExtension).targetCompatibility = BuildParams.minimumRuntimeVersion

Expand Down Expand Up @@ -96,13 +94,6 @@ class StandaloneRestTestPlugin implements Plugin<Project> {
idea.module.scopes.put('TEST', [plus: [project.configurations.getByName(JavaPlugin.TEST_RUNTIME_CLASSPATH_CONFIGURATION_NAME)]] as Map<String, Collection<Configuration>>)

PrecommitTasks.create(project, false)
project.tasks.getByName('check').dependsOn(project.tasks.getByName('precommit'))

project.tasks.withType(JavaCompile) { JavaCompile task ->
// This will be the default in Gradle 5.0
if (task.options.compilerArgs.contains("-processor") == false) {
task.options.compilerArgs << '-proc:none'
}
}
project.tasks.named('check').configure { it.dependsOn(project.tasks.named('precommit')) }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import org.elasticsearch.gradle.docker.DockerSupportService;
import org.elasticsearch.gradle.info.BuildParams;
import org.elasticsearch.gradle.info.GlobalBuildInfoPlugin;
import org.elasticsearch.gradle.tool.Boilerplate;
import org.elasticsearch.gradle.util.GradleUtils;
import org.gradle.api.GradleException;
import org.gradle.api.NamedDomainObjectContainer;
import org.gradle.api.Plugin;
Expand All @@ -52,7 +52,7 @@
import java.util.concurrent.Callable;
import java.util.function.Supplier;

import static org.elasticsearch.gradle.Util.capitalize;
import static org.elasticsearch.gradle.util.Util.capitalize;

/**
* A plugin to manage getting and extracting distributions of Elasticsearch.
Expand All @@ -77,7 +77,7 @@ public void apply(Project project) {
project.getRootProject().getPluginManager().apply(GlobalBuildInfoPlugin.class);
project.getRootProject().getPluginManager().apply(DockerSupportPlugin.class);

Provider<DockerSupportService> dockerSupport = Boilerplate.getBuildService(
Provider<DockerSupportService> dockerSupport = GradleUtils.getBuildService(
project.getGradle().getSharedServices(),
DockerSupportPlugin.DOCKER_SUPPORT_SERVICE_NAME
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
import java.util.concurrent.Callable;
import java.util.stream.StreamSupport;

import static org.elasticsearch.gradle.tool.Boilerplate.findByName;
import static org.elasticsearch.gradle.tool.Boilerplate.maybeCreate;
import static org.elasticsearch.gradle.util.GradleUtils.findByName;
import static org.elasticsearch.gradle.util.GradleUtils.maybeCreate;

public class JdkDownloadPlugin implements Plugin<Project> {

Expand Down
Loading