Skip to content

Commit 47fa60e

Browse files
committed
Added pom files for github dependency graph
1 parent 8bf7df5 commit 47fa60e

File tree

4 files changed

+176
-0
lines changed

4 files changed

+176
-0
lines changed

marklogic-junit5/build.gradle

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,20 @@ signing {
4343
sign configurations.archives
4444
}
4545

46+
task generatePomForDependencyGraph(dependsOn: "generatePomFileForMainJavaPublication") {
47+
description = "Prepare for a release by making a copy of the generated pom file in the root directory so that it " +
48+
"can enable Github's Dependency Graph feature, which does not yet support Gradle"
49+
doLast {
50+
def preamble = '<?xml version="1.0" encoding="UTF-8"?>'
51+
def comment = "<!--\n" +
52+
"This file was generated via Gradle and is being used primarily for github's Dependency Graph feature.\n" +
53+
"It is not intended to be used to build this project.\n" +
54+
"-->"
55+
def fileText = file("build/publications/mainJava/pom-default.xml").getText()
56+
file("pom.xml").setText(fileText.replace(preamble, preamble + comment))
57+
}
58+
}
59+
4660
publishing {
4761
publications {
4862
mainJava(MavenPublication) {

marklogic-junit5/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+
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 http://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>marklogic-junit5</artifactId>
15+
<version>1.1.0</version>
16+
<name>com.marklogic:marklogic-junit5</name>
17+
<description>Supports testing MarkLogic applications</description>
18+
<url>https://github.com/marklogic-community/marklogic-junit5</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/marklogic-junit5.git</connection>
36+
<developerConnection>scm:[email protected]:marklogic-community/marklogic-junit5.git</developerConnection>
37+
<url>[email protected]:marklogic-community/marklogic-junit5.git</url>
38+
</scm>
39+
<dependencies>
40+
<dependency>
41+
<groupId>com.marklogic</groupId>
42+
<artifactId>marklogic-unit-test-client</artifactId>
43+
<version>1.1.0</version>
44+
<scope>compile</scope>
45+
</dependency>
46+
<dependency>
47+
<groupId>com.marklogic</groupId>
48+
<artifactId>ml-javaclient-util</artifactId>
49+
<version>4.3.0</version>
50+
<scope>compile</scope>
51+
</dependency>
52+
<dependency>
53+
<groupId>org.jdom</groupId>
54+
<artifactId>jdom2</artifactId>
55+
<version>2.0.6</version>
56+
<scope>compile</scope>
57+
</dependency>
58+
<dependency>
59+
<groupId>org.junit.jupiter</groupId>
60+
<artifactId>junit-jupiter</artifactId>
61+
<version>5.7.2</version>
62+
<scope>compile</scope>
63+
</dependency>
64+
<dependency>
65+
<groupId>org.springframework</groupId>
66+
<artifactId>spring-context</artifactId>
67+
<version>5.3.9</version>
68+
<scope>compile</scope>
69+
</dependency>
70+
<dependency>
71+
<groupId>org.springframework</groupId>
72+
<artifactId>spring-test</artifactId>
73+
<version>5.3.9</version>
74+
<scope>compile</scope>
75+
</dependency>
76+
<dependency>
77+
<groupId>com.fasterxml.jackson.core</groupId>
78+
<artifactId>jackson-databind</artifactId>
79+
<version>2.11.1</version>
80+
<scope>compile</scope>
81+
</dependency>
82+
<dependency>
83+
<groupId>org.slf4j</groupId>
84+
<artifactId>slf4j-api</artifactId>
85+
<version>1.7.31</version>
86+
<scope>compile</scope>
87+
</dependency>
88+
<dependency>
89+
<groupId>jaxen</groupId>
90+
<artifactId>jaxen</artifactId>
91+
<version>1.2.0</version>
92+
<scope>runtime</scope>
93+
</dependency>
94+
</dependencies>
95+
</project>

marklogic-unit-test-client/build.gradle

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,20 @@ signing {
3434
sign configurations.archives
3535
}
3636

37+
task generatePomForDependencyGraph(dependsOn: "generatePomFileForMainJavaPublication") {
38+
description = "Prepare for a release by making a copy of the generated pom file in the root directory so that it " +
39+
"can enable Github's Dependency Graph feature, which does not yet support Gradle"
40+
doLast {
41+
def preamble = '<?xml version="1.0" encoding="UTF-8"?>'
42+
def comment = "<!--\n" +
43+
"This file was generated via Gradle and is being used primarily for github's Dependency Graph feature.\n" +
44+
"It is not intended to be used to build this project.\n" +
45+
"-->"
46+
def fileText = file("build/publications/mainJava/pom-default.xml").getText()
47+
file("pom.xml").setText(fileText.replace(preamble, preamble + comment))
48+
}
49+
}
50+
3751
publishing {
3852
publications {
3953
mainJava(MavenPublication) {

marklogic-unit-test-client/pom.xml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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 http://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>marklogic-unit-test-client</artifactId>
15+
<version>1.1.0</version>
16+
<name>com.marklogic:marklogic-unit-test-client</name>
17+
<description>Supports testing MarkLogic applications</description>
18+
<url>https://github.com/marklogic-community/marklogic-unit-test-client</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/marklogic-unit-test-client.git</connection>
36+
<developerConnection>scm:[email protected]:marklogic-community/marklogic-unit-test-client.git</developerConnection>
37+
<url>[email protected]:marklogic-community/marklogic-unit-test-client.git</url>
38+
</scm>
39+
<dependencies>
40+
<dependency>
41+
<groupId>com.marklogic</groupId>
42+
<artifactId>marklogic-client-api</artifactId>
43+
<version>5.5.0</version>
44+
<scope>compile</scope>
45+
</dependency>
46+
<dependency>
47+
<groupId>org.slf4j</groupId>
48+
<artifactId>slf4j-api</artifactId>
49+
<version>1.7.31</version>
50+
<scope>runtime</scope>
51+
</dependency>
52+
</dependencies>
53+
</project>

0 commit comments

Comments
 (0)