You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Update README.md
Update readme to reflect the apiKey is set as a system property following feedback from #619
* Update README.md
Co-authored-by: Simone Claridge <[email protected]>
* Update README.md
* Update README.md
Co-authored-by: Simone Claridge <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+9-3Lines changed: 9 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,10 @@ Note: *in the following instructions for setting the API key, if a `gradle.prope
21
21
1. Open IntelliJ IDEA and select _File > Open..._.
22
22
2. Choose one of the sample project directories (not the category folder) and click _OK_.
23
23
3. Select _File > Project Structure..._ and ensure that the Project SDK and language level are set to use Java 11.
24
-
4. Set your API key in the `gradle.properties` file located in the `/.gradle` folder within your home directory.
24
+
4. Store your API key in the `gradle.properties` file located in the `/.gradle` folder within your home directory. The API key will be set as a Java system property when the sample is run.
25
+
```
26
+
apiKey = yourApiKey
27
+
```
25
28
5. Open the Gradle view with _View > Tool Windows > Gradle_.
26
29
6. In the Gradle view, double-click the `run` task under _Tasks > application_ to run the app.
27
30
@@ -31,15 +34,18 @@ Note: *in the following instructions for setting the API key, if a `gradle.prope
31
34
2. In the import wizard, choose _Gradle > Existing Gradle Project_, then click _Next_.
32
35
3. Choose one of the sample project directories (not the category folder) as the project root directory.
33
36
4. Click _Finish_ to complete the import.
34
-
5. Set your API key in the `gradle.properties` file located in the `/.gradle` folder within your home directory.
37
+
5. Store your API key in the `gradle.properties` file located in the `/.gradle` folder within your home directory. The API key will be set as a Java system property when the sample is run.
38
+
```
39
+
apiKey = yourApiKey
40
+
```
35
41
6. Open the Gradle Tasks view with _Window > Show View > Other... > Gradle > Gradle Tasks_.
36
42
7. In the Gradle Tasks view, double-click the `run` task under _{project_name} > application_ to run the app.
37
43
38
44
### Terminal
39
45
40
46
1.`cd` into one of the sample project directories (not the category folder).
41
47
2. Run `gradle wrapper` to create the Gradle Wrapper
42
-
3.Set your API key in the `gradle.properties` file located in the `/.gradle` folder within your home directory.
48
+
3.Store your API key in the `gradle.properties` file located in the `/.gradle` folder within your home directory. The API key will be set as a Java system property when the sample is run.
43
49
4. Run `./gradlew run` on Linux/Mac or `gradlew.bat run` on Windows to run the app.
0 commit comments