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

Commit ad61e5c

Browse files
committed
#364 Upgraded Gradle configuration to support Gradle 5
updated cleanup
1 parent e21ef9d commit ad61e5c

File tree

3 files changed

+23
-22
lines changed

3 files changed

+23
-22
lines changed

build.gradle

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id "java"
2+
id "java-library"
33
id "maven-publish"
44
id "eclipse"
55
id "idea"
@@ -17,32 +17,32 @@ repositories {
1717
}
1818

1919
dependencies {
20-
compile 'com.marklogic:ml-javaclient-util:' + mlJavaclientUtilVersion
21-
compile 'jaxen:jaxen:1.1.6'
22-
compile 'org.apache.httpcomponents:httpclient:4.3.6'
23-
compile 'org.springframework:spring-web:4.3.5.RELEASE'
20+
api 'com.marklogic:ml-javaclient-util:' + mlJavaclientUtilVersion
21+
api 'jaxen:jaxen:1.1.6'
22+
api 'org.apache.httpcomponents:httpclient:4.3.6'
23+
api 'org.springframework:spring-web:4.3.5.RELEASE'
2424

2525
// For EqualsBuilder; added in 3.8.1 to support detecting if a mimetype's properties have changed or not
26-
compile "org.apache.commons:commons-lang3:3.7"
26+
api "org.apache.commons:commons-lang3:3.7"
2727

2828
// For PreviewInterceptor; can be excluded if that feature is not used
29-
compile "com.flipkart.zjsonpatch:zjsonpatch:0.4.6"
29+
api "com.flipkart.zjsonpatch:zjsonpatch:0.4.6"
3030

3131
// Required for Java 11
32-
compile "javax.xml.bind:jaxb-api:2.3.1"
33-
compile "com.sun.xml.bind:jaxb-core:2.3.0.1"
34-
compile "com.sun.xml.bind:jaxb-impl:2.3.2"
32+
api "javax.xml.bind:jaxb-api:2.3.1"
33+
api "com.sun.xml.bind:jaxb-core:2.3.0.1"
34+
api "com.sun.xml.bind:jaxb-impl:2.3.2"
3535

3636
// Don't want to include this in the published jar, just the executable jar
3737
compileOnly "com.beust:jcommander:1.72"
3838

39-
testCompile 'com.marklogic:ml-junit:' + mlJunitVersion
40-
testCompile 'commons-io:commons-io:2.5'
39+
testImplementation 'com.marklogic:ml-junit:' + mlJunitVersion
40+
testImplementation 'commons-io:commons-io:2.5'
4141

4242
// Forcing Spring to use logback instead of commons-logging
43-
compile "ch.qos.logback:logback-classic:1.1.8" // Needs to be compile for CLI
44-
runtime group: "org.slf4j", name: "jcl-over-slf4j", version: "1.7.22"
45-
runtime group: "org.slf4j", name: "slf4j-api", version: "1.7.22"
43+
implementation "ch.qos.logback:logback-classic:1.1.8" // Needs to be implementation for CLI
44+
testImplementation group: "org.slf4j", name: "jcl-over-slf4j", version: "1.7.22"
45+
testImplementation group: "org.slf4j", name: "slf4j-api", version: "1.7.22"
4646
}
4747

4848
// This ensures that Gradle includes in the published jar any non-java files under src/main/java
@@ -102,20 +102,21 @@ test {
102102
}
103103

104104
task executableJar(type: Jar) {
105-
baseName = "deployer"
105+
description = "Construct an executable jar for executing ml-app-deployer commands via the command line"
106+
archiveBaseName = "deployer"
106107
manifest {
107108
attributes("Main-Class": "com.marklogic.appdeployer.cli.Main")
108109
}
109110
// Include this project's class files
110111
from sourceSets.main.output
111112
// Include all project dependencies
112113
from {
113-
configurations.runtime.collect {
114+
configurations.compileClasspath.collect {
114115
it.isDirectory() ? it : zipTree(it)
115116
}
116117
}
117118
from {
118-
configurations.compileOnly.collect {
119+
configurations.runtimeClasspath.collect {
119120
it.isDirectory() ? it : zipTree(it)
120121
}
121122
}

gradle.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
group=com.marklogic
22
javadocsDir=../gh-pages-marklogic-java/javadocs
3-
version=3.15.0
4-
mlJavaclientUtilVersion=3.13.0
5-
mlJunitVersion=3.1.0
3+
version=3.15.1-develop
4+
mlJavaclientUtilVersion=3.13.1-develop
5+
mlJunitVersion=3.2.0
66

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-bin.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-bin.zip

0 commit comments

Comments
 (0)