Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit 6f7b645

Browse files
committed
Bumping to 2.8.0 to include schemas support
1 parent 07cab90 commit 6f7b645

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,14 @@ the [MarkLogic Java Client API](http://docs.marklogic.com/guide/java). Those fea
77
- Support for automatically loading a new/modified module using the REST API
88
- Basic integration with Spring via a Spring FactoryBean
99

10+
This is a lower-level library that is primarily used via [ml-app-deployer](https://github.com/rjrudin/ml-app-deployer) and [ml-gradle](https://github.com/rjrudin/ml-gradle) and [ml-junit](https://github.com/rjrudin/ml-junit). But you can use it by itself too.
11+
12+
Here's a sample of loading modules - though it's best to look at the aforementioned projects to see all the ways this can be done:
13+
14+
DatabaseClient client = DatabaseClientFactory.newClient(...); // Use the ML Java Client API
15+
RestApiAssetLoader assetLoader = new RestApiAssetLoader(client); // Can use XCC or the REST API to load asset modules
16+
DefaultModulesLoader modulesLoader = new DefaultModulesLoader(assetLoader);
17+
File modulesDir = new File("src/main/ml-modules");
18+
ModulesFinder modulesFinder = new DefaultModulesFinder(); // Allows for adjusting where modules are stored on a filesystem
19+
modulesLoader.loadModules(modulesDir, modulesFinder, client);
20+

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ if (project.hasProperty("myBintrayUser")) {
6060
licenses = ['Apache-2.0']
6161
vcsUrl = 'https://github.com/rjrudin/' + project.name + '.git'
6262
version {
63-
name = "2.7.1"
63+
name = "2.8.0"
6464
released = new Date()
6565
}
6666
}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
group=com.marklogic
22
publishUrl=file:../gh-pages-marklogic-java/releases
33
javadocsDir=../gh-pages-marklogic-java/javadocs
4-
version=2.7.1
4+
version=2.8.0

0 commit comments

Comments
 (0)