在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):marklogic-community/ml-gradle开源软件地址(OpenSource Url):https://github.com/marklogic-community/ml-gradle开源编程语言(OpenSource Language):Groovy 95.6%开源软件介绍(OpenSource Introduction):Automate everything involving MarkLogic with Gradleml-gradle is a Gradle plugin that can automate everything you do with MarkLogic. Deploy an application, add a host, backup a database, stub out a new project, load modules as you modify them, run an MLCP or CoRB or Data Movement job - if it involves MarkLogic, ml-gradle either automates it already or can be extended to do so. You can use ml-gradle right away with the simple tutorial below, or learn more:
Don't want to use Gradle? Then consider using the ml-app-deployer Java library on which ml-gradle depends. ml-app-deployer provides most of the functionality within ml-gradle without having any dependency on Gradle or Groovy - ml-gradle is then a fairly thin wrapper around ml-app-deployer to expose its functionality within a Gradle environment. Start using ml-gradleml-gradle depends on at least Java 8 and MarkLogic 9 or 10, so if you have those installed, you're just a couple minutes away from using ml-gradle to start a new project and deploy an application from it. First, install Gradle - it is recommended to use the latest version, though note that ml-gradle 4.3.0 is the first version that can run on Gradle 7. Then, in an empty directory, create a file named "build.gradle" with your favorite text editor and enter the following:
Then run:
This starts a project wizard to stub out files for your new application. You can accept all the defaults, but be sure to enter a valid port number for the "REST API port" question. ml-gradle will then print the following logging:
You now have an ml-gradle project stubbed out with support for deploying to multiple environments via the Gradle properties plugin. Now deploy it!
And you should see more ml-gradle logging like this:
And once that's complete, you can go to the MarkLogic Admin UI on port 8001 to see the resources that have been created (the names of these resources start with the application name you selected in the project wizard, which defaults to myApp):
Congratulations! You've used ml-gradle to stub out a new project and deploy its application to MarkLogic. You're now ready to start adding more resources and modules to your project. See the links above this tutorial to learn more about using ml-gradle. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论