forked from opensearch-project/opensearch-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
51 lines (41 loc) · 1.25 KB
/
build.gradle.kts
File metadata and controls
51 lines (41 loc) · 1.25 KB
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
42
43
44
45
46
47
48
49
50
51
/*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*/
plugins {
java
application
id("com.diffplug.spotless") version "6.25.0"
}
java {
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_11
}
dependencies {
implementation(project(":java-client"))
implementation("org.apache.logging.log4j", "log4j-api","[2.17.1,3.0)")
implementation("org.apache.logging.log4j", "log4j-core","[2.17.1,3.0)")
implementation("org.apache.logging.log4j", "log4j-slf4j2-impl","[2.17.1,3.0)")
implementation("commons-logging", "commons-logging", "1.2")
implementation("com.fasterxml.jackson.core", "jackson-databind", "2.15.2")
}
spotless {
java {
target("**/*.java")
// Use the default importOrder configuration
importOrder()
removeUnusedImports()
eclipse().configFile("../buildSrc/formatterConfig.xml")
trimTrailingWhitespace()
endWithNewline()
}
}
application {
mainClass.set("org.opensearch.client.samples.Main")
}
tasks.named<JavaExec>("run") {
systemProperty("samples.mainClass", System.getProperty("samples.mainClass"))
}