Skip to content

Commit 61e2822

Browse files
authored
Rename in last docs and replace version for 2024.1.0 (#194)
Part of #184
1 parent 12fdb1f commit 61e2822

File tree

5 files changed

+22
-22
lines changed

5 files changed

+22
-22
lines changed

README.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# Develocity API Kotlin
22

3-
[![Maven Central](https://img.shields.io/badge/Maven%20Central-2023.4.0-blue)][14]
4-
[![Javadoc](https://img.shields.io/badge/Javadoc-2023.4.0-orange)][7]
3+
[![Maven Central](https://img.shields.io/badge/Maven%20Central-2024.1.0-blue)][14]
4+
[![Javadoc](https://img.shields.io/badge/Javadoc-2024.1.0-orange)][7]
5+
6+
(formerly `gradle-enterprise-api-kotlin`)
57

68
A Kotlin library to access the [Develocity API][1], easy to use from:
79

@@ -16,7 +18,7 @@ api.buildsApi.getBuildsFlow(fromInstant = 0, query = "buildStartTime<-1d").forEa
1618
}
1719
```
1820

19-
The library takes care of caching under the hood (opt-in) and provides some convenience extensions.
21+
The library takes care of caching under the hood (opt-in) and provides some convenience extensions.
2022

2123
## Setup
2224

@@ -29,15 +31,12 @@ Set up environment variables and use the library from any notebook, script or pr
2931

3032
### Setup snippets
3133

32-
ℹ️ The library is now published to Maven Central under `com.gabrielfeo`. Maven Central is
33-
recommended over JitPack.
34-
3534
<details>
3635
<summary>Add to a Jupyter notebook</summary>
3736

3837
```
3938
%useLatestDescriptors
40-
%use develocity-api-kotlin(version=2023.4.0)
39+
%use develocity-api-kotlin(version=2024.1.0)
4140
```
4241

4342
</details>
@@ -46,7 +45,7 @@ recommended over JitPack.
4645
<summary>Add to a Kotlin script</summary>
4746

4847
```kotlin
49-
@file:DependsOn("com.gabrielfeo:develocity-api-kotlin:2023.4.0")
48+
@file:DependsOn("com.gabrielfeo:develocity-api-kotlin:2024.1.0")
5049
```
5150

5251
</details>
@@ -56,7 +55,7 @@ recommended over JitPack.
5655

5756
```kotlin
5857
dependencies {
59-
implementation("com.gabrielfeo:develocity-api-kotlin:2023.4.0")
58+
implementation("com.gabrielfeo:develocity-api-kotlin:2024.1.0")
6059
}
6160
```
6261

docs/AccessKeys.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# Access key / API token
22

3-
[All API requests require authentication][1]. Provide a valid access key of your Gradle Enterprise instance as the `DEVELOCITY_API_TOKEN` environment variable.
3+
[All API requests require authentication][1]. Provide a valid access key of your Develocity instance
4+
as the `DEVELOCITY_API_TOKEN` environment variable.
45

56
## How to get an access key
67

7-
1. Sign in to Gradle Enterprise (with a user that has “Export build data” permission)
8+
1. Sign in to Develocity (with a user that has “Export build data” permission)
89
2. Go to "My settings" from the user menu in the top right-hand corner of the page
910
3. Go to "Access keys" from the sidebar
1011
4. Click "Generate" on the right-hand side
@@ -13,18 +14,19 @@
1314
## Migrating from macOS keychain support
1415

1516
This library used to support storing the key in the macOS keychain as `gradle-enterprise-api-kotlin`.
16-
This feature was deprecated. You may use the method of your choice (secret managers, password manager CLIs, etc.) to store and retrieve the key to an environment.
17+
This feature was deprecated in 2023.4.0, then removed in 2024.1.0. You may use the method of your choice
18+
(secret managers, password manager CLIs, etc.) to store and retrieve the key to an environment.
1719

1820
If you used the key from keychain and need a drop-in replacement:
1921

2022
```
2123
# Create an alias in your shell to fetch the key from keychain
22-
echo 'alias ge-api-token="security find-generic-password -w -a "$LOGNAME" -s gradle-enterprise-api-kotlin"' >> ~/.zshrc
24+
echo 'alias dat="security find-generic-password -w -a "$LOGNAME" -s gradle-enterprise-api-kotlin"' >> ~/.zshrc
2325
2426
# Retrieve it to the environment variable before running the program
25-
DEVELOCITY_API_TOKEN="$(ge-api-token)" ./my-script.main.kts
26-
DEVELOCITY_API_TOKEN="$(ge-api-token)" jupyter lab
27-
DEVELOCITY_API_TOKEN="$(ge-api-token)" idea my-project
27+
DEVELOCITY_API_TOKEN="$(dat)" ./my-script.main.kts
28+
DEVELOCITY_API_TOKEN="$(dat)" jupyter lab
29+
DEVELOCITY_API_TOKEN="$(dat)" idea my-project
2830
```
2931

3032
[1]: https://docs.gradle.com/enterprise/api-manual/#access_control

examples/example-notebooks/MostFrequentBuilds.ipynb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"Add libraries to use, via line magics. `%use` is a [line magic](https://github.com/Kotlin/kotlin-jupyter#line-magics) of the Kotlin kernel that can do much more than adding the library. To illustrate, this setup can be replaced with a single line magic.\n",
3636
"\n",
3737
"```kotlin\n",
38-
"@file:DependsOn(\"com.gabrielfeo:develocity-api-kotlin:2023.4.0\")\n",
38+
"@file:DependsOn(\"com.gabrielfeo:develocity-api-kotlin:2024.1.0\")\n",
3939
"\n",
4040
"import com.gabrielfeo.develocity.api.*\n",
4141
"import com.gabrielfeo.develocity.api.model.*\n",
@@ -45,8 +45,7 @@
4545
"is the same as:\n",
4646
"\n",
4747
"```\n",
48-
"%use develocity-api-kotlin(version=2023.4.0)\n",
49-
"\n",
48+
"%use develocity-api-kotlin(version=2024.1.0)\n",
5049
"```"
5150
]
5251
},
@@ -63,7 +62,7 @@
6362
"outputs": [],
6463
"source": [
6564
"%useLatestDescriptors\n",
66-
"%use develocity-api-kotlin(version=2023.4.0)\n",
65+
"%use develocity-api-kotlin(version=2024.1.0)\n",
6766
"%use coroutines(v=1.7.1)\n",
6867
"\n",
6968
"val api = DevelocityApi.newInstance()"

examples/example-project/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ java {
1515
}
1616

1717
dependencies {
18-
implementation("com.gabrielfeo:develocity-api-kotlin:2023.4.0")
18+
implementation("com.gabrielfeo:develocity-api-kotlin:2024.1.0")
1919
}

examples/example-scripts/example-script.main.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* Run this with at least 1GB of heap to accomodate the fetched data: JAVA_OPTS=-Xmx1g
1818
*/
1919

20-
@file:DependsOn("com.gabrielfeo:develocity-api-kotlin:2023.4.0")
20+
@file:DependsOn("com.gabrielfeo:develocity-api-kotlin:2024.1.0")
2121

2222
import com.gabrielfeo.develocity.api.*
2323
import com.gabrielfeo.develocity.api.model.*

0 commit comments

Comments
 (0)