Skip to content

Commit

Permalink
feat: Remove use of deprecated gradle command in java README (#1196)
Browse files Browse the repository at this point in the history
Per internal bug 197475869, the "compile" command in gradle has been deprecated in favor of "implementation" for many years, and is actually removed in the latest versions of gradle
  • Loading branch information
JesseLovelace committed Aug 27, 2021
1 parent 31728d8 commit e770c12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions synthtool/gcp/templates/java_library/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ If you are using Gradle 5.x or later, add this to your dependencies
```Groovy
implementation platform('com.google.cloud:libraries-bom:{{metadata['latest_bom_version']}}')
compile '{{ group_id }}:{{ artifact_id }}'
implementation '{{ group_id }}:{{ artifact_id }}'
```
{% endif -%}

If you are using Gradle without BOM, add this to your dependencies

```Groovy
compile '{{ group_id }}:{{ artifact_id }}:{{ metadata['latest_version'] }}'
implementation '{{ group_id }}:{{ artifact_id }}:{{ metadata['latest_version'] }}'
```

If you are using SBT, add this to your dependencies
Expand Down

0 comments on commit e770c12

Please sign in to comment.