This repository was archived by the owner on Sep 16, 2024. It is now read-only.
4.0.0
This is a major release due to its dependency on the MarkLogic Java Client version 5.1.0, which also depends on Java 9 or higher. ml-app-deployer 3.x depends on Java Client version 4.x.
In addition to depending on ml-javaclient-util 4.0.0, the following deprecated features in ml-app-deployer 3.x have been removed:
- The createTriggersDatabase property in AppConfig was deleted. If a triggers database should be created, a file should be created for it.
- getConfigDir was removed from AppConfig. This was a wrapper method around getFirstConfigDir(), and thus if a single ConfigDir is desired (AppConfig has a List), getFirstConfigDir() should be used.
- getSchemasPath and setSchemasPath were removed from AppConfig. getSchemaPaths and setSchemaPaths should be used.
- setDeployForestsWithCma, setDeployPrivilegesWithCma, and setDeployAmpsWithCma were all removed from AppConfig. These were all passthrough calls to methods on the CmaConfig object returned by getCmaConfig(), which should be used.
- The concept of "content database files" was removed from DeployOtherDatabasesCommand and ConfigDir. This provided a mechanism for defining multiple files for configuring a content database. DeployOtherDatabasesCommand is able to merge multiple files for any database, so this special-case feature was no longer needed.
- The commands DeployContentDatabaseCommand, DeploySchemasDatabaseCommand, and DeployTriggersDatabaseCommand have all been deleted, as DeployOtherDatabasesCommand handles all databases. The constants in SortOrderConstants used by this commands have also been deleted.
- GroupedReplicaBuilderStrategy was deleted, as DistributedReplicaBuilderStrategy is the proper strategy to use.
- The setDeployRolesInTwoPhases method was deleted from DeployRolesCommand, as that method no longer had any effect.
- The *AsAdmin methods in ManageClient have been deleted. *AsSecurityUser methods should be used.
- The adminUsername and adminPassword properties in ManageConfig were deleted. The securityUsername and securityPassword properties should be used instead.
- Based on the above changes, the following properties that had been deprecated in 3.x have been removed - mlAdminUsername, mlAdminPassword, mlConfigDir, and mlSchemasPath. Respectively, use mlSecurityUsername, mlSecurityPassword, mlConfigDirs, and mlSchemaPaths.