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

Commit c9f40f7

Browse files
committed
#424 Upgrading dependencies and supporting Java 8 again
1 parent 38e6314 commit c9f40f7

File tree

4 files changed

+28
-11
lines changed

4 files changed

+28
-11
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ src/test/resources/scaffold-test/
1313
src/test/resources/entity-services-project/src
1414
*.iml
1515
target
16-
16+
gradle-local.properties
17+
snyk

build.gradle

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,13 @@ plugins {
55
id "idea"
66
id "com.jfrog.bintray" version "1.8.4"
77
id "com.github.jk1.dependency-license-report" version "1.3"
8+
9+
id "net.saliman.properties" version "1.5.1"
10+
id "io.snyk.gradle.plugin.snykplugin" version "0.4"
811
}
912

10-
sourceCompatibility = "9"
11-
targetCompatibility = "9"
13+
sourceCompatibility = "8"
14+
targetCompatibility = "8"
1215

1316
repositories {
1417
mavenLocal()
@@ -17,10 +20,13 @@ repositories {
1720
}
1821

1922
dependencies {
20-
api 'com.marklogic:ml-javaclient-util:4.1.0-rc1'
23+
api 'com.marklogic:ml-javaclient-util:4.1.0-SNAPSHOT'
2124
api 'jaxen:jaxen:1.1.6'
22-
api 'org.apache.httpcomponents:httpclient:4.5.12'
23-
api 'org.springframework:spring-web:5.2.8.RELEASE'
25+
api 'org.apache.httpcomponents:httpclient:4.5.13'
26+
api 'org.springframework:spring-web:5.2.9.RELEASE'
27+
28+
// Forcing httpclient to use this to address https://snyk.io/vuln/SNYK-JAVA-COMMONSCODEC-561518
29+
api 'commons-codec:commons-codec:1.13'
2430

2531
// For EqualsBuilder; added in 3.8.1 to support detecting if a mimetype's properties have changed or not
2632
api "org.apache.commons:commons-lang3:3.11"
@@ -38,7 +44,7 @@ dependencies {
3844

3945
testImplementation 'com.marklogic:ml-junit:3.2.0'
4046
// Force ml-junit to use 5.2.8 instead of 4.1.5
41-
testImplementation "org.springframework:spring-test:5.2.8.RELEASE"
47+
testImplementation "org.springframework:spring-test:5.2.9.RELEASE"
4248
testImplementation 'commons-io:commons-io:2.8.0'
4349

4450
// Forcing Spring to use logback instead of commons-logging
@@ -123,3 +129,12 @@ task executableJar(type: Jar) {
123129
}
124130
}
125131
}
132+
133+
// See https://github.com/snyk/gradle-plugin for more information
134+
snyk {
135+
//arguments = '--all-sub-projects'
136+
severity = 'low'
137+
api = snykToken
138+
autoDownload = true
139+
autoUpdate = true
140+
}

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
javadocsDir=../gh-pages-marklogic-java/javadocs
3-
version=4.1.0-rc1
3+
version=4.1.0-SNAPSHOT
44

src/main/java/com/marklogic/mgmt/resource/tasks/TaskManager.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ protected void updateNewTaskIfItShouldBeDisabled(String payload, SaveReceipt rec
200200
* Per ticket #367, when a task is updated, it is first deleted. This is to workaround Manage API behavior which
201201
* does not allow for any property besides "task-enabled" to be updated on a scheduled task. But it's often handy
202202
* during a deployment to update some other property of a scheduled task. Unfortunately, that throws an error.
203-
*
203+
* <p>
204204
* So to work around that, when a scheduled task is updated, it's first deleted. Then the task is created, which
205205
* includes making another call to disable the task if task-enabled is set to false.
206206
*
@@ -256,8 +256,9 @@ public void deleteAllTasks() {
256256
/**
257257
* @param taskPath
258258
*/
259-
@Deprecated(since = "Deprecated since 4.0.2, as the taskPath may not suffice for uniquely identifying a task. " +
260-
"This now assumes a task root of '/' to at least avoid an error being thrown.")
259+
// Deprecated since 4.0.2, as the taskPath may not suffice for uniquely identifying a task.
260+
// This now assumes a task root of '/' to at least avoid an error being thrown.
261+
@Deprecated
261262
public void deleteTaskWithPath(String taskPath) {
262263
deleteTaskWithPath(taskPath, "/");
263264
}

0 commit comments

Comments
 (0)