diff --git a/build.gradle b/build.gradle index 8f51ffadf..7ad87c307 100644 --- a/build.gradle +++ b/build.gradle @@ -46,6 +46,11 @@ task sourcesJar(type: Jar, dependsOn: classes) { from sourceSets.main.allGroovy } +task javadocJar(type: Jar, dependsOn: javadoc) { + classifier "javadoc" + from file(javadocsDir + "/" + project.name) +} + publishing { publications { mainJava(MavenPublication) { @@ -55,6 +60,9 @@ publishing { from components.java artifact sourcesJar } + mavenJavadoc(MavenPublication) { + artifact javadocJar + } } } @@ -62,7 +70,7 @@ if (project.hasProperty("myBintrayUser")) { bintray { user = myBintrayUser key = myBintrayKey - publications = ['mainJava', 'sourcesJava'] + publications = ['mainJava', 'sourcesJava', 'mavenJavadoc'] pkg { repo = 'maven' name = project.name diff --git a/gradle.properties b/gradle.properties index 313658562..2c0f1ec8c 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,6 @@ group=com.marklogic version=3.6.3 +javadocsDir=../gh-pages-marklogic-java/javadocs mlAppDeployerDependency=com.marklogic:ml-app-deployer:3.6.3 mlcpUtilDependency=com.marklogic:mlcp-util:0.9.0 diff --git a/pom.xml b/pom.xml new file mode 100644 index 000000000..1169ceb7a --- /dev/null +++ b/pom.xml @@ -0,0 +1,95 @@ + + + + 4.0.0 + com.marklogic + ml-gradle + 3.6.3 + jar + + ml-gradle + Gradle plugin for automating everything involving MarkLogic + https://github.com/marklogic-community/ml-gradle + + + + Apache License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + repo + + + + + https://github.com/marklogic-community/ml-gradle.git + + + + + MarkLogic + java-sig@marklogic.com + MarkLogic + https://www.marklogic.com + + + MarkLogic Github Contributors + general@developer.marklogic.com + Github Contributors + https://github.com/marklogic/marklogic-app-deployer/graphs/contributors + + + + + 1.8 + 1.8 + + + + + com.marklogic + ml-app-deployer + 3.6.3 + compile + + + com.marklogic + mlcp-util + 0.9.0 + compile + + + com.marklogic + marklogic-data-movement-components + 1.0 + compile + + + commons-io + commons-io + 2.5 + compile + + + + xmlunit + xmlunit + 1.3 + test + + + org.spockframework + spock-core + 1.1-groovy-2.4 + test + + + groovy-all + * + + + + + + +