-
Notifications
You must be signed in to change notification settings - Fork 199
/
Copy pathbuild.gradle.kts
36 lines (30 loc) · 1 KB
/
build.gradle.kts
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
/*
* 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("opensearch-java.spotless-conventions")
}
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")
}
application {
mainClass.set("org.opensearch.client.samples.Main")
}
tasks.named<JavaExec>("run") {
systemProperty("samples.mainClass", System.getProperty("samples.mainClass"))
}