-
Notifications
You must be signed in to change notification settings - Fork 74
Expand file tree
/
Copy pathbuild.gradle
More file actions
42 lines (38 loc) · 2.01 KB
/
build.gradle
File metadata and controls
42 lines (38 loc) · 2.01 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
/*
* Copyright (c) 2010-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
*/
plugins {
id "net.saliman.properties" version "1.5.2"
id 'com.marklogic.ml-gradle' version '6.0.1'
id "com.github.psxpaul.execfork" version "0.2.2"
}
dependencies {
implementation "io.undertow:undertow-core:2.3.19.Final"
implementation "io.undertow:undertow-servlet:2.3.19.Final"
implementation 'org.slf4j:slf4j-api:2.0.17'
implementation 'ch.qos.logback:logback-classic:1.5.19'
implementation "com.fasterxml.jackson.core:jackson-databind:${jacksonVersion}"
implementation "com.squareup.okhttp3:okhttp:${okhttpVersion}"
}
// See https://github.com/psxpaul/gradle-execfork-plugin for docs.
// Note that the task will stop at the end of the build by default, which is typically the behavior we want when
// running tests.
tasks.register("runReverseProxyServer", com.github.psxpaul.task.JavaExecFork) {
dependsOn compileJava
description = "Run a reverse proxy so that the Java tests can be verified when talking to a reverse proxy instead of " +
"directly to MarkLogic"
classpath = sourceSets.main.runtimeClasspath
main = "com.marklogic.client.test.ReverseProxyServer"
workingDir = "${layout.buildDirectory.get()}"
standardOutput = file("${layout.buildDirectory.get()}/reverse-proxy.log")
errorOutput = file("${layout.buildDirectory.get()}/reverse-proxy-error.log")
}
tasks.register("runBlockingReverseProxyServer", JavaExec) {
description = "Run the reverse proxy server so that it blocks and waits for requests; use ctrl-C to stop it. " +
"This is intended for manual testing with the reverse proxy server. If you wish to enable an HTTPS port that is 443" +
"or any value less than 1024, you will need to use sudo to run this - e.g. " +
"sudo ./gradlew runBlockingReverseProxyServer -PrpsHttpsPort=443 ."
classpath = sourceSets.main.runtimeClasspath
mainClass = "com.marklogic.client.test.ReverseProxyServer"
args = [rpsMarkLogicServer, rpsProxyServer, rpsHttpPort, rpsHttpsPort, rpsCustomMappings]
}