Skip to content

Commit

Permalink
fix: switch from Groovy to Kotlin for Gradle build BOM dependency sam…
Browse files Browse the repository at this point in the history
…ple code. (#278)
  • Loading branch information
zhumin8 authored Nov 21, 2024
1 parent 5d3aecc commit f7e27b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,12 +172,12 @@ public LibraryOverviewFile(
+ repoMetadata.getArtifactId()
+ "</code> artifact.\n"
+ "<pre class=\"prettyprint lang-Groovy devsite-click-to-copy\">\n"
+ "implementation platform(&#39;com.google.cloud:libraries-bom:"
+ "implementation(platform(&quot;com.google.cloud:libraries-bom:"
+ librariesBomVersion
+ "&#39;)\n"
+ "implementation &#39;"
+ "&quot;))\n"
+ "implementation(&quot;"
+ repoMetadata.getDistributionName()
+ "&#39;\n"
+ "&quot;)\n"
+ "</pre>\n\n"
+ "The <code>platform</code> and <code>enforcedPlatform</code> keywords supply dependency versions\n"
+ "declared in a BOM. The <code>enforcedPlatform</code> keyword enforces the dependency\n"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ dependency declarations in the artifact's <code>build.gradle</code> file.

The example below demonstrates how you would import the BOM and include the <code>google-cloud-apikeys</code> artifact.
<pre class="prettyprint lang-Groovy devsite-click-to-copy">
implementation platform(&#39;com.google.cloud:libraries-bom:26.19.0&#39;)
implementation &#39;com.google.cloud:google-cloud-apikeys&#39;
implementation(platform(&quot;com.google.cloud:libraries-bom:26.19.0&quot;))
implementation(&quot;com.google.cloud:google-cloud-apikeys&quot;)
</pre>

The <code>platform</code> and <code>enforcedPlatform</code> keywords supply dependency versions
Expand Down

0 comments on commit f7e27b6

Please sign in to comment.