11plugins {
2- id " java"
2+ id " java-library "
33 id " maven-publish"
44 id " eclipse"
55 id " idea"
@@ -17,32 +17,32 @@ repositories {
1717}
1818
1919dependencies {
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
104104task 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 }
0 commit comments