Skip to content

Commit

Permalink
chore(java): default samples/snippets pom should not use libraries-bom (
Browse files Browse the repository at this point in the history
#694)

We are now only adding clients to libraries-bom once the client is
1.0.0. Since this template is created at repository creation time, we
don't want to include the libraries-bom installation method here.
  • Loading branch information
chingor13 authored Jul 24, 2020
1 parent a6643f6 commit 5506723
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions synthtool/gcp/templates/java_library/samples/snippets/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,26 +25,13 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>


<!-- [START {{metadata['repo']['name']}}_install_with_bom] -->
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>libraries-bom</artifactId>
<version>{{ metadata['latest_bom_version'] }}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

<dependencies>
<!-- TODO: switch to libraries-bom after this artifact is included -->
<dependency>
<groupId>{{ group_id }}</groupId>
<artifactId>{{ artifact_id }}</artifactId>
<version>{{ metadata['latest_version'] }}</version>
</dependency>
<!-- [END {{metadata['repo']['name']}}_install_with_bom] -->

<dependency>
<groupId>junit</groupId>
Expand Down

0 comments on commit 5506723

Please sign in to comment.