Skip to content

Commit f7e27b6

Browse files
authored
fix: switch from Groovy to Kotlin for Gradle build BOM dependency sample code. (#278)
1 parent 5d3aecc commit f7e27b6

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

third_party/docfx-doclet-143274/src/main/java/com/microsoft/model/LibraryOverviewFile.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,12 +172,12 @@ public LibraryOverviewFile(
172172
+ repoMetadata.getArtifactId()
173173
+ "</code> artifact.\n"
174174
+ "<pre class=\"prettyprint lang-Groovy devsite-click-to-copy\">\n"
175-
+ "implementation platform(&#39;com.google.cloud:libraries-bom:"
175+
+ "implementation(platform(&quot;com.google.cloud:libraries-bom:"
176176
+ librariesBomVersion
177-
+ "&#39;)\n"
178-
+ "implementation &#39;"
177+
+ "&quot;))\n"
178+
+ "implementation(&quot;"
179179
+ repoMetadata.getDistributionName()
180-
+ "&#39;\n"
180+
+ "&quot;)\n"
181181
+ "</pre>\n\n"
182182
+ "The <code>platform</code> and <code>enforcedPlatform</code> keywords supply dependency versions\n"
183183
+ "declared in a BOM. The <code>enforcedPlatform</code> keyword enforces the dependency\n"

third_party/docfx-doclet-143274/src/test/resources/expected-generated-files/overview.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ dependency declarations in the artifact's <code>build.gradle</code> file.
6161

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

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

0 commit comments

Comments
 (0)