Skip to content

Commit fc1d493

Browse files
committed
Added pom file for Maven Central
1 parent 9a257cd commit fc1d493

File tree

3 files changed

+105
-1
lines changed

3 files changed

+105
-1
lines changed

build.gradle

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ task sourcesJar(type: Jar, dependsOn: classes) {
4646
from sourceSets.main.allGroovy
4747
}
4848

49+
task javadocJar(type: Jar, dependsOn: javadoc) {
50+
classifier "javadoc"
51+
from file(javadocsDir + "/" + project.name)
52+
}
53+
4954
publishing {
5055
publications {
5156
mainJava(MavenPublication) {
@@ -55,14 +60,17 @@ publishing {
5560
from components.java
5661
artifact sourcesJar
5762
}
63+
mavenJavadoc(MavenPublication) {
64+
artifact javadocJar
65+
}
5866
}
5967
}
6068

6169
if (project.hasProperty("myBintrayUser")) {
6270
bintray {
6371
user = myBintrayUser
6472
key = myBintrayKey
65-
publications = ['mainJava', 'sourcesJava']
73+
publications = ['mainJava', 'sourcesJava', 'mavenJavadoc']
6674
pkg {
6775
repo = 'maven'
6876
name = project.name

gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
group=com.marklogic
22
version=3.6.3
3+
javadocsDir=../gh-pages-marklogic-java/javadocs
34

45
mlAppDeployerDependency=com.marklogic:ml-app-deployer:3.6.3
56
mlcpUtilDependency=com.marklogic:mlcp-util:0.9.0

pom.xml

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
3+
xmlns="http://maven.apache.org/POM/4.0.0"
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
5+
6+
<modelVersion>4.0.0</modelVersion>
7+
<groupId>com.marklogic</groupId>
8+
<artifactId>ml-gradle</artifactId>
9+
<version>3.6.3</version>
10+
<packaging>jar</packaging>
11+
12+
<name>ml-gradle</name>
13+
<description>Gradle plugin for automating everything involving MarkLogic</description>
14+
<url>https://github.com/marklogic-community/ml-gradle</url>
15+
16+
<licenses>
17+
<license>
18+
<name>Apache License, Version 2.0</name>
19+
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
20+
<distribution>repo</distribution>
21+
</license>
22+
</licenses>
23+
24+
<scm>
25+
<url>https://github.com/marklogic-community/ml-gradle.git</url>
26+
</scm>
27+
28+
<developers>
29+
<developer>
30+
<name>MarkLogic</name>
31+
<email>[email protected]</email>
32+
<organization>MarkLogic</organization>
33+
<organizationUrl>https://www.marklogic.com</organizationUrl>
34+
</developer>
35+
<developer>
36+
<name>MarkLogic Github Contributors</name>
37+
<email>[email protected]</email>
38+
<organization>Github Contributors</organization>
39+
<organizationUrl>https://github.com/marklogic/marklogic-app-deployer/graphs/contributors</organizationUrl>
40+
</developer>
41+
</developers>
42+
43+
<properties>
44+
<maven.compiler.source>1.8</maven.compiler.source>
45+
<maven.compiler.target>1.8</maven.compiler.target>
46+
</properties>
47+
48+
<dependencies>
49+
<dependency>
50+
<groupId>com.marklogic</groupId>
51+
<artifactId>ml-app-deployer</artifactId>
52+
<version>3.6.3</version>
53+
<scope>compile</scope>
54+
</dependency>
55+
<dependency>
56+
<groupId>com.marklogic</groupId>
57+
<artifactId>mlcp-util</artifactId>
58+
<version>0.9.0</version>
59+
<scope>compile</scope>
60+
</dependency>
61+
<dependency>
62+
<groupId>com.marklogic</groupId>
63+
<artifactId>marklogic-data-movement-components</artifactId>
64+
<version>1.0</version>
65+
<scope>compile</scope>
66+
</dependency>
67+
<dependency>
68+
<groupId>commons-io</groupId>
69+
<artifactId>commons-io</artifactId>
70+
<version>2.5</version>
71+
<scope>compile</scope>
72+
</dependency>
73+
74+
<dependency>
75+
<groupId>xmlunit</groupId>
76+
<artifactId>xmlunit</artifactId>
77+
<version>1.3</version>
78+
<scope>test</scope>
79+
</dependency>
80+
<dependency>
81+
<groupId>org.spockframework</groupId>
82+
<artifactId>spock-core</artifactId>
83+
<version>1.1-groovy-2.4</version>
84+
<scope>test</scope>
85+
<exclusions>
86+
<exclusion>
87+
<artifactId>groovy-all</artifactId>
88+
<groupId>*</groupId>
89+
</exclusion>
90+
</exclusions>
91+
</dependency>
92+
93+
</dependencies>
94+
95+
</project>

0 commit comments

Comments
 (0)