-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
76 lines (65 loc) · 2.62 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/*
* 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.
*
* Modifications Copyright OpenSearch Contributors. See
* GitHub history for details.
*/
plugins {
id 'java'
id "com.diffplug.spotless" version "6.3.0" apply false
}
ext {
projectSubstitutions = [:]
licenseFile = rootProject.file('LICENSE.txt')
noticeFile = rootProject.file('NOTICE.txt')
}
apply plugin: 'application'
apply from: 'gradle/formatting.gradle'
mainClassName = 'transportservice.RunPlugin'
group 'org.example'
version '1.0-SNAPSHOT'
repositories {
mavenLocal()
// Remove the commented code below once TransportService is published to maven
//maven { url "https://aws.oss.sonatype.org/content/repositories/snapshots" }
maven { url "https://d1nvenhzbhpy0q.cloudfront.net/snapshots/lucene/"}
mavenCentral()
}
dependencies {
implementation "org.opensearch:opensearch:3.0.0-SNAPSHOT"
implementation group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.17.1'
implementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.17.1'
implementation "io.netty:netty-all:4.1.73.Final"
testCompileOnly ("junit:junit:4.13.2") {
exclude module : 'hamcrest'
exclude module : 'hamcrest-core'
}
// Keeping it for now. Will remove it later once figure out the right dependencies
// implementation "io.netty:netty-buffer:4.1.73.Final"
// implementation "io.netty:netty-codec:4.1.73.Final"
// implementation "io.netty:netty-codec-http:4.1.73.Final"
// implementation "io.netty:netty-common:4.1.73.Final"
// implementation "io.netty:netty-handler:4.1.73.Final"
// implementation "io.netty:netty-resolver:4.1.73.Final"
// implementation "io.netty:netty-transportservice.transport:4.1.73.Final"
//implementation "org.apache.logging.log4j:log4j-1.2-api:2.17.1"
implementation 'javax.xml.bind:jaxb-api:2.2.2'
implementation 'com.fasterxml.jackson.core:jackson-databind: 2.12.6.1'
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml: 2.12.6.1'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
testImplementation "org.opensearch.test:framework:3.0.0-SNAPSHOT"
}
test {
useJUnitPlatform()
jvmArgs '--enable-preview'
systemProperty 'tests.security.manager', 'false'
testLogging.showStandardStreams = true
testLogging {
events "passed", "skipped", "failed", "standardOut", "standardError"
}
}