File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -4,16 +4,21 @@ import com.marklogic.client.DatabaseClient
4
4
plugins {
5
5
id ' base'
6
6
id ' net.saliman.properties' version ' 1.5.1'
7
- id ' com.marklogic.ml-gradle' version ' 4.1.1 '
7
+ id ' com.marklogic.ml-gradle' version ' 4.5.3 '
8
8
}
9
9
10
10
class GenerateLookups extends com.marklogic.gradle.task. MarkLogicTask {
11
+ @Input
11
12
String modulesDir = ' src/main/ml-modules/'
13
+ @Input
12
14
String featureQuery = new File (" ${ modulesDir} get-marklogic-features.xqy" ). getText(' UTF-8' )
15
+ @Input
13
16
String errorQuery = new File (" ${ modulesDir} get-marklogic-error-codes.xqy" ). getText(' UTF-8' )
14
-
17
+ @Input
15
18
String lookupsDir = ' src/main/resources/lookups/'
19
+ @Input
16
20
String featureFile = ' marklogic_feature.csv'
21
+ @Input
17
22
String errorFile = ' marklogic_error.csv'
18
23
19
24
@TaskAction
@@ -104,7 +109,7 @@ def addAuthorizationToken(connection, token){
104
109
def appInpsectLogin () {
105
110
def connection = buildAppInspectConnection( ' https://api.splunk.com/2.0/rest/login/splunk' , ' GET' )
106
111
String userpassword = project. appInspectUsername + ' :' + project. appInspectPassword;
107
- String encodedAuthorization = new String (java.util.Base64 . getMimeEncoder(). encode( userpassword. getBytes() ), StandardCharsets . UTF_8 );
112
+ String encodedAuthorization = new String (java.util.Base64 . getMimeEncoder(). encode( userpassword. getBytes() ), java.nio.charset. StandardCharsets. UTF_8 );
108
113
connection. setRequestProperty(' Authorization' , ' Basic ' + encodedAuthorization);
109
114
new groovy.json.JsonSlurper (). parse(connection. getInputStream())
110
115
}
You can’t perform that action at this time.
0 commit comments