-
Notifications
You must be signed in to change notification settings - Fork 80
Closed
Description
Convert the contents of app_specific.rb into zero or more custom tasks in build.gradle (make a backup copy of this too). Each task has a type of com.marklogic.gradle.task.XccTask (though a ServerEvalTask would be worth making, which uses DatabaseClient instead of XCC).
Example of converting an app_specific.rb function into a task:
def example()
@logger.info "Example function"
r = execute_query %Q{
xdmp:log("Hello world!")'
}
end
task exampleTask(type: com.marklogic.gradle.task.XccTask) {
description = "Example function"
xccUrl = "a valid XCC url"
xquery = 'xdmp:log("Hello world!")'
}