-
Notifications
You must be signed in to change notification settings - Fork 25.2k
/
Copy pathbuild.gradle
41 lines (33 loc) · 1.45 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
import org.elasticsearch.gradle.internal.precommit.CheckForbiddenApisTask
apply plugin: 'elasticsearch.build'
dependencies {
compileOnly project(":server")
compileOnly project(":libs:elasticsearch-cli")
compileOnly project(":libs:elasticsearch-native")
testImplementation project(":test:framework")
}
tasks.named("compileJava").configure {
// nativeaccess only has qualified exports. Even though the cli is not run modular, compilation is done with the module path
// so nativeaccess needs to be exported here, just at compile time
options.compilerArgs << '--add-exports' << 'org.elasticsearch.nativeaccess/org.elasticsearch.nativeaccess=ALL-UNNAMED'
}
tasks.named("test").configure {
systemProperty "tests.security.manager", "false"
}
tasks.withType(CheckForbiddenApisTask).configureEach {
replaceSignatureFiles 'jdk-signatures'
}
["javadoc", "loggerUsageCheck", "jarHell"].each { tsk ->
tasks.named(tsk).configure { enabled = false }
}
tasks.named("test").configure {
// this is necessary to jvm options can invoke java to find final options
systemProperty "tests.system_call_filter", "false"
}