Versão do mlgradle: 5.0.0
gradle mlDeploy recebeu o seguinte erro:
* What went wrong:
Execution failed for task ':mlDeployApp'.
> Error occurred while calling http://<some-DNS-address>:8003/v1/config/properties; java.net.SocketException: Connection reset ; possible reasons for the error include that a MarkLogic app server may not be listening on the port, or MarkLogic was stopped or restarted during the request; check the MarkLogic server logs for more information.
Nosso firewall só permite HTTPS e acho que é por isso que a conexão falhou. No gradle.properties, tenho o seguinte para especificar HTTPS, mas ele ainda usa HTTP para a porta 8003.
mlManageSimpleSsl=true
mlAdminSimpleSsl=true
mlRestSimpleSsl=true
mlAppServicesSimpleSsl=true
Como especifico HTTPS para a porta 8003?
Para habilitar TLS/SSL para comunicação com o servidor de aplicativos, defina
mlSimpleSsl
https://github.com/marklogic/ml-gradle/issues/304#issuecomment-362588977
https://github.com/marklogic/ml-gradle/wiki/Property-reference#rest-api-server-connection-properties
Veja o exemplo de projeto SSL: https://github.com/marklogic/ml-gradle/blob/master/examples/ssl-project/gradle.properties