Skip to content

Commit 60c49d7

Browse files
authored
chore: update README and workflow dependencies (#976)
1 parent 6dab87c commit 60c49d7

2 files changed

Lines changed: 43 additions & 48 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
runs-on: ubuntu-latest
2424
steps:
2525
- name: Checkout
26-
uses: actions/checkout@v2
26+
uses: actions/checkout@v4
2727
with:
2828
token: ${{ secrets.SYNCED_GITHUB_TOKEN_REPO }}
2929
- name: Create .gpg key
@@ -48,12 +48,13 @@ jobs:
4848
- name: Semantic Release
4949
uses: cycjimmy/semantic-release-action@v3
5050
with:
51+
semantic_version: 19
5152
extra_plugins: |
52-
"@semantic-release/commit-analyzer"
53-
"@semantic-release/release-notes-generator"
53+
"@semantic-release/commit-analyzer@^9"
54+
"@semantic-release/release-notes-generator@^10"
5455
"@google/semantic-release-replace-plugin"
5556
"@semantic-release/exec"
5657
"@semantic-release/git"
57-
"@semantic-release/github"
58+
"@semantic-release/github@^8"
5859
env:
5960
GH_TOKEN: ${{ secrets.SYNCED_GITHUB_TOKEN_REPO }}

README.md

Lines changed: 38 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
Java Client for Google Maps Services
2-
====================================
1+
# Java Client for Google Maps Services
32

43
[![Build Status](https://travis-ci.org/googlemaps/google-maps-services-java.svg)](https://travis-ci.org/googlemaps/google-maps-services-java)
54
[![Coverage Status](https://img.shields.io/coveralls/googlemaps/google-maps-services-java.svg)](https://coveralls.io/r/googlemaps/google-maps-services-java)
@@ -8,6 +7,16 @@ Java Client for Google Maps Services
87
![GitHub contributors](https://img.shields.io/github/contributors/googlemaps/google-maps-services-java?color=green)
98
[![Stack Exchange questions](https://img.shields.io/stackexchange/stackoverflow/t/google-maps?color=orange&label=google-maps&logo=stackoverflow)](https://stackoverflow.com/questions/tagged/google-maps)
109

10+
> [!TIP]
11+
> If you are looking for Java client libraries for the following APIs, see the [Google Maps Platform APIs in the Cloud Client Libraries for Java](https://github.com/googleapis/google-cloud-java/tree/main) ([releases](https://github.com/googleapis/google-cloud-java/releases?q=maps&expanded=true)).
12+
>
13+
> - [Address Validation API](https://github.com/googleapis/google-cloud-java/tree/main/java-maps-addressvalidation)
14+
> - [Datasets API](https://github.com/googleapis/google-cloud-java/tree/main/java-maps-mapsplatformdatasets)
15+
> - [Places API (New)](https://github.com/googleapis/google-cloud-java/tree/main/java-maps-places)
16+
> - [Routes API](https://github.com/googleapis/google-cloud-java/tree/main/java-maps-routing)
17+
>
18+
> The new APIs will not be added to this client library.
19+
1120
## Description
1221

1322
Use Java? Want to [geocode][Geocoding API] something? Looking for [directions][Directions API]?
@@ -26,18 +35,11 @@ APIs:
2635
- [Roads API]
2736
- [Time Zone API]
2837

29-
Keep in mind that the same [terms and conditions](https://developers.google.com/maps/terms) apply
30-
to usage of the APIs when they're accessed through this library.
31-
3238
## Requirements
3339

34-
- Java 1.8 or later.
35-
- A Google Maps API key.
36-
37-
## API keys
38-
Each Google Maps Web Service request requires an API key. API keys are generated in the 'Credentials' page of the 'APIs & Services' tab of Google Cloud console.
39-
40-
For even more information on getting started with Google Maps Platform and generating an API key, see [Get Started with Google Maps Platform](https://developers.google.com/maps/gmp-get-started) in our docs.
40+
- Java 1.8 or later
41+
- A [Cloud project](https://developers.google.com/maps/get-started) with the relevant API(s) enabled
42+
- An [API key](https://developers.google.com/maps/get-started) associated with the project above
4143

4244
### API Key Security
4345

@@ -49,22 +51,15 @@ from version control, should also be put in place to further improve the securit
4951
You can refer to [API Security Best Practices](https://developers.google.com/maps/api-security-best-practices) to learn
5052
more about this topic.
5153

52-
**NOTE**: If you are using this library on Android, ensure that your application
53-
is using at least version 0.19.0 of this library so that API key restrictions can be enforced.
54+
> [!NOTE]
55+
> If you are using this library on Android, ensure that your application is using at least version 0.19.0 of this library so that API key restrictions can be enforced.
5456
5557
## Installation
5658

5759
You can add the library to your project via Maven or Gradle.
5860

59-
**Note:** Since 0.1.18 there is now a dependency on [SLF4J](https://www.slf4j.org/). You need to add
60-
one of the adapter dependencies that makes sense for your logging setup. In the configuration
61-
samples below we are integrating
62-
[slf4j-nop](https://search.maven.org/#artifactdetails%7Corg.slf4j%7Cslf4j-nop%7C1.7.25%7Cjar),
63-
but there are others like
64-
[slf4j-log4j12](https://search.maven.org/#artifactdetails%7Corg.slf4j%7Cslf4j-log4j12%7C1.7.25%7Cjar)
65-
and [slf4j-jdk14](https://search.maven.org/#artifactdetails%7Corg.slf4j%7Cslf4j-jdk14%7C1.7.25%7Cjar)
66-
that will make more sense in other configurations. This will stop a warning message being emitted
67-
when you start using `google-maps-services`.
61+
> [!NOTE]
62+
> Since 0.1.18 there is now a dependency on [SLF4J](https://www.slf4j.org/). You need to add one of the adapter dependencies that makes sense for your logging setup. In the configuration samples below we are integrating [slf4j-nop](https://search.maven.org/#artifactdetails%7Corg.slf4j%7Cslf4j-nop%7C1.7.25%7Cjar), but there are others like [slf4j-log4j12](https://search.maven.org/#artifactdetails%7Corg.slf4j%7Cslf4j-log4j12%7C1.7.25%7Cjar) and [slf4j-jdk14](https://search.maven.org/#artifactdetails%7Corg.slf4j%7Cslf4j-jdk14%7C1.7.25%7Cjar) that will make more sense in other configurations. This will stop a warning message being emitted when you start using `google-maps-services`.
6863
6964
### Maven
7065

@@ -97,11 +92,12 @@ dependencies {
9792
You can find the latest version at the top of this README or by [searching
9893
Maven Central](https://search.maven.org/#search%7Cga%7C1%7Ca%3A%22google-maps-services%22).
9994

100-
## Developer Documentation
95+
## Documentation
96+
10197
View the [javadoc](https://www.javadoc.io/doc/com.google.maps/google-maps-services).
10298

10399
Additional documentation for the included web services is available at
104-
https://developers.google.com/maps/.
100+
<https://developers.google.com/maps/>.
105101

106102
- [Directions API]
107103
- [Distance Matrix API]
@@ -220,34 +216,33 @@ req.setCallback(new PendingResult.Callback<GeocodingResponse>() {
220216

221217
## Building the Project
222218

223-
**Note:** You will need an API key or Client ID to run the tests.
219+
> [!NOTE]
220+
> You will need an API key to run the tests.
221+
222+
```bash
223+
# Compile and package the project
224+
$ ./gradlew jar
225+
226+
# Run the tests
227+
$ ./gradlew test
228+
```
229+
230+
## Terms
224231

225-
# Compile and package the project
226-
$ ./gradlew jar
232+
This library uses Google Maps Platform services. Use of Google Maps Platform services through this library is subject to the [Google Maps Platform Terms of Service](https://cloud.google.com/maps-platform/terms).
227233

228-
# Run the tests
229-
$ ./gradlew test
234+
This library is not a Google Maps Platform Core Service. Therefore, the Google Maps Platform Terms of Service (e.g. Technical Support Services, Service Level Agreements, and Deprecation Policy) do not apply to the code in this library.
230235

231236
## Support
232237

233-
This library is community supported. We're comfortable enough with the stability and features of
234-
the library that we want you to build real production applications on it. We will try to support,
235-
through Stack Overflow, the public and protected surface of the library and maintain backwards
236-
compatibility in the future; however, while the library is in version 0.x, we reserve the right
237-
to make backwards-incompatible changes. If we do remove some functionality (typically because
238-
better functionality exists or if the feature proved infeasible), our intention is to deprecate
239-
and give developers a year to update their code.
238+
This library is offered via an open source license. It is not governed by the [Google Maps Platform Support Technical Support Services Guidelines](https://cloud.google.com/maps-platform/terms/tssg), the [SLA](https://cloud.google.com/maps-platform/terms/sla), or the [Deprecation Policy](https://cloud.google.com/maps-platform/terms) (however, any Google Maps Platform services used by the library remain subject to the Google Maps Platform Terms of Service).
240239

241-
If you find a bug, or have a feature suggestion, please [log an issue][issues]. If you'd like to
242-
contribute, please read [How to Contribute][contrib].
240+
This library adheres to [semantic versioning](https://semver.org/) to indicate when backwards-incompatible changes are introduced. Accordingly, while the library is in version 0.x, backwards-incompatible changes may be introduced at any time.
243241

242+
If you find a bug, or have a feature request, please file an [issue][issues] on GitHub. If you would like to get answers to technical questions from other Google Maps Platform developers, ask through one of our [developer community channels](https://developers.google.com/maps/developer-community). If you'd like to contribute, please check the [Contributing guide][contrib] in the GitHub repository.
244243

245-
[apikey]: https://developers.google.com/maps/faq#keysystem
246-
[clientid]: https://developers.google.com/maps/documentation/business/webservices/auth
247244
[contrib]: https://github.com/googlemaps/google-maps-services-java/blob/main/CONTRIB.md
248245
[Directions API]: https://developers.google.com/maps/documentation/directions
249-
[directions-key]: https://developers.google.com/maps/documentation/directions/get-api-key#key
250-
[directions-client-id]: https://developers.google.com/maps/documentation/directions/get-api-key#client-id
251246
[Distance Matrix API]: https://developers.google.com/maps/documentation/distancematrix
252247
[Elevation API]: https://developers.google.com/maps/documentation/elevation
253248
[Geocoding API]: https://developers.google.com/maps/documentation/geocoding
@@ -257,4 +252,3 @@ contribute, please read [How to Contribute][contrib].
257252
[Places API]: https://developers.google.com/places/web-service/
258253
[Time Zone API]: https://developers.google.com/maps/documentation/timezone
259254
[Roads API]: https://developers.google.com/maps/documentation/roads
260-
[Making the most of the Google Maps Web Service APIs]: https://maps-apis.googleblog.com/2016/09/making-most-of-google-maps-web-service.html

0 commit comments

Comments
 (0)