Skip to content

Commit 5ee74b0

Browse files
committed
Added pom file for Github dependency graph
1 parent 9c096a8 commit 5ee74b0

File tree

2 files changed

+79
-0
lines changed

2 files changed

+79
-0
lines changed

build.gradle

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,20 @@ signing {
6262
sign configurations.archives
6363
}
6464

65+
task generatePomForDependencyGraph(dependsOn: "generatePomFileForMainJavaPublication") {
66+
description = "Prepare for a release by making a copy of the generated pom file in the root directory so that it " +
67+
"can enable Github's Dependency Graph feature, which does not yet support Gradle"
68+
doLast {
69+
def preamble = '<?xml version="1.0" encoding="UTF-8"?>'
70+
def comment = "<!--\n" +
71+
"This file was generated via Gradle and is being used primarily for github's Dependency Graph feature.\n" +
72+
"It is not intended to be used to build this project.\n" +
73+
"-->"
74+
def fileText = file("build/publications/mainJava/pom-default.xml").getText()
75+
file("pom.xml").setText(fileText.replace(preamble, preamble + comment))
76+
}
77+
}
78+
6579
publishing {
6680
publications {
6781
mainJava(MavenPublication) {

pom.xml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
<?xml version="1.0" encoding="UTF-8"?><!--
2+
This file was generated via Gradle and is being used primarily for github's Dependency Graph feature.
3+
It is not intended to be used to build this project.
4+
-->
5+
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
6+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
7+
<!-- This module was also published with a richer model, Gradle metadata, -->
8+
<!-- which should be used instead. Do not delete the following line which -->
9+
<!-- is to indicate to Gradle or any Gradle module metadata file consumer -->
10+
<!-- that they should prefer consuming it instead. -->
11+
<!-- do_not_remove: published-with-gradle-metadata -->
12+
<modelVersion>4.0.0</modelVersion>
13+
<groupId>com.marklogic</groupId>
14+
<artifactId>ml-gradle</artifactId>
15+
<version>4.3.0</version>
16+
<name>com.marklogic:ml-gradle</name>
17+
<description>Gradle plugin for automating everything involving MarkLogic</description>
18+
<url>https://github.com/marklogic-community/ml-gradle</url>
19+
<licenses>
20+
<license>
21+
<name>The Apache License, Version 2.0</name>
22+
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
23+
</license>
24+
</licenses>
25+
<developers>
26+
<developer>
27+
<id>marklogic</id>
28+
<name>MarkLogic Github Contributors</name>
29+
<email>[email protected]</email>
30+
<organization>MarkLogic</organization>
31+
<organizationUrl>https://www.marklogic.com</organizationUrl>
32+
</developer>
33+
</developers>
34+
<scm>
35+
<connection>scm:[email protected]:marklogic-community/ml-gradle.git</connection>
36+
<developerConnection>scm:[email protected]:marklogic-community/ml-gradle.git</developerConnection>
37+
<url>[email protected]:marklogic-community/ml-gradle.git</url>
38+
</scm>
39+
<dependencies>
40+
<dependency>
41+
<groupId>com.marklogic</groupId>
42+
<artifactId>ml-app-deployer</artifactId>
43+
<version>4.3.0</version>
44+
<scope>compile</scope>
45+
</dependency>
46+
<dependency>
47+
<groupId>com.marklogic</groupId>
48+
<artifactId>mlcp-util</artifactId>
49+
<version>1.0</version>
50+
<scope>runtime</scope>
51+
</dependency>
52+
<dependency>
53+
<groupId>com.marklogic</groupId>
54+
<artifactId>marklogic-data-movement-components</artifactId>
55+
<version>2.4.0</version>
56+
<scope>runtime</scope>
57+
</dependency>
58+
<dependency>
59+
<groupId>commons-io</groupId>
60+
<artifactId>commons-io</artifactId>
61+
<version>2.11.0</version>
62+
<scope>runtime</scope>
63+
</dependency>
64+
</dependencies>
65+
</project>

0 commit comments

Comments
 (0)