Skip to content

Commit ec9a866

Browse files
committed
#602 CallResourceTask now works on Gradle 7
1 parent 8383f2f commit ec9a866

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/main/groovy/com/marklogic/gradle/task/client/CallResourceTask.groovy

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,34 @@
11
package com.marklogic.gradle.task.client
22

33
import com.marklogic.gradle.task.MarkLogicTask
4+
import org.gradle.api.tasks.Input
5+
import org.gradle.api.tasks.Optional
46
import org.gradle.api.tasks.TaskAction
57

68
/**
79
* Intended to simplify calling a custom resource - e.g. something under /v1/resources/(resourceName).
810
*/
911
class CallResourceTask extends MarkLogicTask {
1012

13+
@Input @Optional
1114
def params = [:]
15+
16+
@Input
1217
def method = "GET"
18+
19+
@Input @Optional
1320
def client = null
21+
22+
@Input
1423
def mimeType = "application/json"
24+
25+
@Input
1526
String resourceName
27+
28+
@Input @Optional
1629
String body
30+
31+
@Input @Optional
1732
String outputFilePath
1833

1934
@TaskAction

0 commit comments

Comments
 (0)