Skip to content

Commit

Permalink
Added pom file for Maven Central
Browse files Browse the repository at this point in the history
  • Loading branch information
rjrudin committed May 14, 2018
1 parent e187946 commit 70dcb8f
Show file tree
Hide file tree
Showing 3 changed files with 105 additions and 1 deletion.
10 changes: 9 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -55,14 +60,17 @@ publishing {
from components.java
artifact sourcesJar
}
mavenJavadoc(MavenPublication) {
artifact javadocJar
}
}
}

if (project.hasProperty("myBintrayUser")) {
bintray {
user = myBintrayUser
key = myBintrayKey
publications = ['mainJava', 'sourcesJava']
publications = ['mainJava', 'sourcesJava', 'mavenJavadoc']
pkg {
repo = 'maven'
name = project.name
Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -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
Expand Down
95 changes: 95 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<modelVersion>4.0.0</modelVersion>
<groupId>com.marklogic</groupId>
<artifactId>ml-gradle</artifactId>
<version>3.6.3</version>
<packaging>jar</packaging>

<name>ml-gradle</name>
<description>Gradle plugin for automating everything involving MarkLogic</description>
<url>https://github.com/marklogic-community/ml-gradle</url>

<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>

<scm>
<url>https://github.com/marklogic-community/ml-gradle.git</url>
</scm>

<developers>
<developer>
<name>MarkLogic</name>
<email>[email protected]</email>
<organization>MarkLogic</organization>
<organizationUrl>https://www.marklogic.com</organizationUrl>
</developer>
<developer>
<name>MarkLogic Github Contributors</name>
<email>[email protected]</email>
<organization>Github Contributors</organization>
<organizationUrl>https://github.com/marklogic/marklogic-app-deployer/graphs/contributors</organizationUrl>
</developer>
</developers>

<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>

<dependencies>
<dependency>
<groupId>com.marklogic</groupId>
<artifactId>ml-app-deployer</artifactId>
<version>3.6.3</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.marklogic</groupId>
<artifactId>mlcp-util</artifactId>
<version>0.9.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.marklogic</groupId>
<artifactId>marklogic-data-movement-components</artifactId>
<version>1.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.5</version>
<scope>compile</scope>
</dependency>

<dependency>
<groupId>xmlunit</groupId>
<artifactId>xmlunit</artifactId>
<version>1.3</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.spockframework</groupId>
<artifactId>spock-core</artifactId>
<version>1.1-groovy-2.4</version>
<scope>test</scope>
<exclusions>
<exclusion>
<artifactId>groovy-all</artifactId>
<groupId>*</groupId>
</exclusion>
</exclusions>
</dependency>

</dependencies>

</project>

0 comments on commit 70dcb8f

Please sign in to comment.