Skip to content

Copy custom Roxy tasks into build.gradle #205

@rjrudin

Description

@rjrudin

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!")'
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions