Skip to content

Commit e1c40f6

Browse files
authored
Add google-http-client-bom artifact (#517)
* Add initial pom.xml and README for bom * Add the bom in the dependencyManagement section of the parent pom * artifact poms do not need special release info * PR comments * Put dependencyManagement section back in parent pom
1 parent 0a95dd0 commit e1c40f6

File tree

4 files changed

+144
-1
lines changed

4 files changed

+144
-1
lines changed

google-http-client-bom/README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Google HTTP Client Library Bill of Materials
2+
3+
The `google-http-client-bom` modules is a pom that can be used to import consistent
4+
versions of `google-http-client` components plus its dependencies.
5+
6+
To use it in Maven, add the following to your `pom.xml`:
7+
8+
[//]: # ({x-version-update-start:google-http-client-bom:released})
9+
```xml
10+
<dependencyManagement>
11+
<dependencies>
12+
<dependency>
13+
<groupId>com.google.http-client</groupId>
14+
<artifactId>google-http-client-bom</artifactId>
15+
<version>1.26.0</version>
16+
<type>pom</type>
17+
<scope>import</scope>
18+
</dependency>
19+
</dependencies>
20+
</dependencyManagement>
21+
```
22+
[//]: # ({x-version-update-end})
23+
24+
## License
25+
26+
Apache 2.0 - See [LICENSE] for more information.
27+
28+
[LICENSE]: https://github.com/googleapis/google-http-java-client/blob/master/LICENSE

google-http-client-bom/pom.xml

Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
<?xml version="1.0"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
<groupId>com.google.http-client</groupId>
5+
<artifactId>google-http-client-bom</artifactId>
6+
<version>1.26.1-SNAPSHOT</version><!-- {x-version-update:google-http-client-bom:current} -->
7+
<packaging>pom</packaging>
8+
9+
<name>Google HTTP Client Library for Java BOM</name>
10+
<url>https://github.com/googleapis/google-http-java-client/tree/master/google-http-client-bom</url>
11+
<description>
12+
BOM for Google HTTP Client Library for Java
13+
</description>
14+
15+
<organization>
16+
<name>Google LLC</name>
17+
</organization>
18+
19+
<scm>
20+
<connection>scm:git:https://github.com/googleapis/google-http-java-client.git</connection>
21+
<developerConnection>scm:git:git@github.com:googleapis/google-http-java-client.git</developerConnection>
22+
<url>https://github.com/googleapis/google-http-java-client</url>
23+
</scm>
24+
25+
<distributionManagement>
26+
<snapshotRepository>
27+
<id>sonatype-nexus-snapshots</id>
28+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
29+
</snapshotRepository>
30+
<repository>
31+
<id>sonatype-nexus-staging</id>
32+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
33+
</repository>
34+
<site>
35+
<id>github-pages-site</id>
36+
<name>Deployment through GitHub's site deployment plugin</name>
37+
<url>site/google-cloud-bom</url>
38+
</site>
39+
</distributionManagement>
40+
41+
<licenses>
42+
<license>
43+
<name>The Apache Software License, Version 2.0</name>
44+
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
45+
<distribution>repo</distribution>
46+
</license>
47+
</licenses>
48+
49+
<dependencyManagement>
50+
<dependencies>
51+
<dependency>
52+
<groupId>com.google.http-client</groupId>
53+
<artifactId>google-http-client</artifactId>
54+
<version>1.26.1-SNAPSHOT</version><!-- {x-version-update:google-http-client:current} -->
55+
</dependency>
56+
<dependency>
57+
<groupId>com.google.http-client</groupId>
58+
<artifactId>google-http-client-android</artifactId>
59+
<version>1.26.1-SNAPSHOT</version><!-- {x-version-update:google-http-client-android:current} -->
60+
</dependency>
61+
<dependency>
62+
<groupId>com.google.http-client</groupId>
63+
<artifactId>google-http-client-appengine</artifactId>
64+
<version>1.26.1-SNAPSHOT</version><!-- {x-version-update:google-http-client-appengine:current} -->
65+
</dependency>
66+
<dependency>
67+
<groupId>com.google.http-client</groupId>
68+
<artifactId>google-http-client-assembly</artifactId>
69+
<version>1.26.1-SNAPSHOT</version><!-- {x-version-update:google-http-client-assembly:current} -->
70+
</dependency>
71+
<dependency>
72+
<groupId>com.google.http-client</groupId>
73+
<artifactId>google-http-client-findbugs</artifactId>
74+
<version>1.26.1-SNAPSHOT</version><!-- {x-version-update:google-http-client-findbugs:current} -->
75+
</dependency>
76+
<dependency>
77+
<groupId>com.google.http-client</groupId>
78+
<artifactId>google-http-client-gson</artifactId>
79+
<version>1.26.1-SNAPSHOT</version><!-- {x-version-update:google-http-client-gson:current} -->
80+
</dependency>
81+
<dependency>
82+
<groupId>com.google.http-client</groupId>
83+
<artifactId>google-http-client-jackson</artifactId>
84+
<version>1.26.1-SNAPSHOT</version><!-- {x-version-update:google-http-client-jackson:current} -->
85+
</dependency>
86+
<dependency>
87+
<groupId>com.google.http-client</groupId>
88+
<artifactId>google-http-client-jackson2</artifactId>
89+
<version>1.26.1-SNAPSHOT</version><!-- {x-version-update:google-http-client-jackson2:current} -->
90+
</dependency>
91+
<dependency>
92+
<groupId>com.google.http-client</groupId>
93+
<artifactId>google-http-client-jdo</artifactId>
94+
<version>1.26.1-SNAPSHOT</version><!-- {x-version-update:google-http-client-jdo:current} -->
95+
</dependency>
96+
<dependency>
97+
<groupId>com.google.http-client</groupId>
98+
<artifactId>google-http-client-protobuf</artifactId>
99+
<version>1.26.1-SNAPSHOT</version><!-- {x-version-update:google-http-client-protobuf:current} -->
100+
</dependency>
101+
<dependency>
102+
<groupId>com.google.http-client</groupId>
103+
<artifactId>google-http-client-test</artifactId>
104+
<version>1.26.1-SNAPSHOT</version><!-- {x-version-update:google-http-client-test:current} -->
105+
</dependency>
106+
<dependency>
107+
<groupId>com.google.http-client</groupId>
108+
<artifactId>google-http-client-xml</artifactId>
109+
<version>1.26.1-SNAPSHOT</version><!-- {x-version-update:google-http-client-xml:current} -->
110+
</dependency>
111+
</dependencies>
112+
</dependencyManagement>
113+
</project>

pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,15 @@
6666
<module>google-http-client-jackson</module>
6767
<module>google-http-client-jackson2</module>
6868
<module>google-http-client-jdo</module>
69+
<module>google-http-client-xml</module>
6970

7071
<module>google-http-client-findbugs</module>
7172
<module>google-http-client-test</module>
7273
<module>samples/dailymotion-simple-cmdline-sample</module>
7374
<module>samples/googleplus-simple-cmdline-sample</module>
7475

7576
<!-- A deployable artifact must be last or deploys are skipped -->
76-
<module>google-http-client-xml</module>
77+
<module>google-http-client-bom</module>
7778
</modules>
7879

7980
<pluginRepositories>

versions.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# module:released-version:current-version
33

44
google-http-client:1.26.0:1.26.1-SNAPSHOT
5+
google-http-client-bom:1.26.0:1.26.1-SNAPSHOT
56
google-http-client-parent:1.26.0:1.26.1-SNAPSHOT
67
google-http-client-android:1.26.0:1.26.1-SNAPSHOT
78
google-http-client-android-test:1.26.0:1.26.1-SNAPSHOT

0 commit comments

Comments
 (0)