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
44plugins {
55 id ' base'
66 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 '
88}
99
1010class GenerateLookups extends com.marklogic.gradle.task. MarkLogicTask {
11+ @Input
1112 String modulesDir = ' src/main/ml-modules/'
13+ @Input
1214 String featureQuery = new File (" ${ modulesDir} get-marklogic-features.xqy" ). getText(' UTF-8' )
15+ @Input
1316 String errorQuery = new File (" ${ modulesDir} get-marklogic-error-codes.xqy" ). getText(' UTF-8' )
14-
17+ @Input
1518 String lookupsDir = ' src/main/resources/lookups/'
19+ @Input
1620 String featureFile = ' marklogic_feature.csv'
21+ @Input
1722 String errorFile = ' marklogic_error.csv'
1823
1924 @TaskAction
@@ -104,7 +109,7 @@ def addAuthorizationToken(connection, token){
104109def appInpsectLogin () {
105110 def connection = buildAppInspectConnection( ' https://api.splunk.com/2.0/rest/login/splunk' , ' GET' )
106111 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 );
108113 connection. setRequestProperty(' Authorization' , ' Basic ' + encodedAuthorization);
109114 new groovy.json.JsonSlurper (). parse(connection. getInputStream())
110115}
You can’t perform that action at this time.
0 commit comments