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

Commit 6273b76

Browse files
authored
Merge pull request #495 from marklogic/release/4.6.0
Merging release/4.6.0 to master
2 parents 5da2fb4 + a5c440e commit 6273b76

27 files changed

+1043
-135
lines changed

build.gradle

+12-7
Original file line numberDiff line numberDiff line change
@@ -8,28 +8,33 @@ plugins {
88
}
99

1010
group = "com.marklogic"
11-
version = "4.5.3"
11+
version = "4.6.0"
1212

1313
java {
1414
sourceCompatibility = 1.8
1515
targetCompatibility = 1.8
1616
}
1717

1818
repositories {
19+
mavenLocal()
1920
mavenCentral()
2021
maven {
2122
url "https://nexus.marklogic.com/repository/maven-snapshots/"
2223
}
2324
}
2425

2526
dependencies {
26-
api 'com.marklogic:ml-javaclient-util:4.5.1'
27-
api 'org.springframework:spring-web:5.3.27'
28-
api 'com.fasterxml.jackson.core:jackson-databind:2.14.1'
27+
api 'com.marklogic:ml-javaclient-util:4.6.0'
28+
api 'org.springframework:spring-web:5.3.29'
29+
api 'com.fasterxml.jackson.core:jackson-databind:2.15.2'
2930

3031
implementation 'jaxen:jaxen:1.2.0'
31-
implementation 'com.squareup.okhttp3:okhttp:4.10.0'
32+
33+
// Forcing usage of 3.4.0 instead of 3.2.0 to address vulnerability - https://security.snyk.io/vuln/SNYK-JAVA-COMSQUAREUPOKIO-5820002
34+
implementation 'com.squareup.okio:okio:3.4.0'
35+
implementation 'com.squareup.okhttp3:okhttp:4.11.0'
3236
implementation 'io.github.rburgst:okhttp-digest:2.7'
37+
3338
implementation 'org.apache.httpcomponents:httpclient:4.5.14'
3439
implementation 'org.jdom:jdom2:2.0.6.1'
3540

@@ -54,8 +59,8 @@ dependencies {
5459
compileOnly "com.beust:jcommander:1.82"
5560
compileOnly "ch.qos.logback:logback-classic:1.3.5"
5661

57-
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.3'
58-
testImplementation 'org.springframework:spring-test:5.3.27'
62+
testImplementation 'org.junit.jupiter:junit-jupiter:5.10.0'
63+
testImplementation 'org.springframework:spring-test:5.3.29'
5964
testImplementation 'commons-io:commons-io:2.11.0'
6065
testImplementation 'xmlunit:xmlunit:1.6'
6166

pom.xml

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ It is not intended to be used to build this project.
1212
<modelVersion>4.0.0</modelVersion>
1313
<groupId>com.marklogic</groupId>
1414
<artifactId>ml-app-deployer</artifactId>
15-
<version>4.5.3</version>
15+
<version>4.6.0</version>
1616
<name>com.marklogic:ml-app-deployer</name>
1717
<description>Java client for the MarkLogic REST Management API and for deploying applications to MarkLogic</description>
1818
<url>https://github.com/marklogic/ml-app-deployer</url>
@@ -40,19 +40,19 @@ It is not intended to be used to build this project.
4040
<dependency>
4141
<groupId>com.marklogic</groupId>
4242
<artifactId>ml-javaclient-util</artifactId>
43-
<version>4.5.1</version>
43+
<version>4.6.0</version>
4444
<scope>compile</scope>
4545
</dependency>
4646
<dependency>
4747
<groupId>org.springframework</groupId>
4848
<artifactId>spring-web</artifactId>
49-
<version>5.3.27</version>
49+
<version>5.3.29</version>
5050
<scope>compile</scope>
5151
</dependency>
5252
<dependency>
5353
<groupId>com.fasterxml.jackson.core</groupId>
5454
<artifactId>jackson-databind</artifactId>
55-
<version>2.14.1</version>
55+
<version>2.15.2</version>
5656
<scope>compile</scope>
5757
</dependency>
5858
<dependency>

src/main/java/com/marklogic/appdeployer/AppConfig.java

+21
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,11 @@ public class AppConfig {
155155
private String cpfDatabaseName;
156156
private String schemasDatabaseName;
157157

158+
// Since 4.6.0; affects loading of modules, schemas, and data.
159+
// Disabled by default for backwards compatibility; will likely default to true in 5.0.0 release.
160+
private boolean cascadeCollections;
161+
private boolean cascadePermissions;
162+
158163
private List<String> modulePaths;
159164
private boolean staticCheckAssets = false;
160165
private boolean staticCheckLibraryAssets = false;
@@ -1535,4 +1540,20 @@ public String getAppServicesSamlToken() {
15351540
public void setAppServicesSamlToken(String appServicesSamlToken) {
15361541
this.appServicesSamlToken = appServicesSamlToken;
15371542
}
1543+
1544+
public boolean isCascadeCollections() {
1545+
return cascadeCollections;
1546+
}
1547+
1548+
public void setCascadeCollections(boolean cascadeCollections) {
1549+
this.cascadeCollections = cascadeCollections;
1550+
}
1551+
1552+
public boolean isCascadePermissions() {
1553+
return cascadePermissions;
1554+
}
1555+
1556+
public void setCascadePermissions(boolean cascadePermissions) {
1557+
this.cascadePermissions = cascadePermissions;
1558+
}
15381559
}

src/main/java/com/marklogic/appdeployer/DefaultAppConfigFactory.java

+10
Original file line numberDiff line numberDiff line change
@@ -791,6 +791,16 @@ public void initialize() {
791791
config.setModulesLoaderBatchSize(Integer.parseInt(prop));
792792
});
793793

794+
propertyConsumerMap.put("mlCascadeCollections", (config, prop) -> {
795+
logger.info("Cascade collections.properties configuration when loading data, modules, and schemas: " + prop);
796+
config.setCascadeCollections(Boolean.parseBoolean(prop));
797+
});
798+
799+
propertyConsumerMap.put("mlCascadePermissions", (config, prop) -> {
800+
logger.info("Cascade permissions.properties configuration when loading data, modules, and schemas: " + prop);
801+
config.setCascadePermissions(Boolean.parseBoolean(prop));
802+
});
803+
794804
/**
795805
* The following properties are all for generating Entity Services artifacts.
796806
*/

src/main/java/com/marklogic/appdeployer/command/CommandContext.java

+5
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,11 @@ public Map<String, Object> getContextMap() {
120120
return contextMap;
121121
}
122122

123+
/**
124+
* @param contextMap
125+
* @deprecated since 4.6.0, will be removed in 5.0.0; the contextMap is not intended to be replaced.
126+
*/
127+
@Deprecated
123128
public void setContextMap(Map<String, Object> contextMap) {
124129
this.contextMap = contextMap;
125130
}

0 commit comments

Comments
 (0)