marklogicml-gradle

How to deploy templates to different schema databases?


I have staging and final databases, both currently sharing a schemas database. We're using TDE, where some templates apply to staging and some to final.

Can ml-gradle deploy some templates to one schemas database and others to a second?


Solution

  • Figured it out. My directory structure needs to be like this:

    -- src
      -- main
        -- ml-config
          -- databases
            -- schemas-db-1
              -- schemas
                -- tde
                  -- template-a.xml
            -- schemas-db-2
              -- schemas
                -- tde
                  -- template-b.xml
    

    ... where schemas-db-1 is the name of the first schemas database. Looks like this requires ml-gradle 3.11.0 or higher (didn't work in 3.9.0).