From 1dce234656742740923324fd7cf7f1c2186593e5 Mon Sep 17 00:00:00 2001 From: github-actions Date: Mon, 9 Oct 2023 18:11:54 +0000 Subject: [PATCH 1/3] [create-pull-request] automated change --- .github/scripts/test_replace_string.py | 2 +- .github/scripts/test_resources/README.md | 10 +++++----- .github/scripts/test_resources/build.gradle.kts | 2 +- .github/scripts/test_resources/notebook.ipynb | 2 +- README.md | 12 ++++++------ examples/example-notebooks/MostFrequentBuilds.ipynb | 6 +++--- examples/example-project/app/build.gradle.kts | 2 +- examples/example-script.main.kts | 2 +- 8 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/scripts/test_replace_string.py b/.github/scripts/test_replace_string.py index 29f94f43..02af1dfc 100755 --- a/.github/scripts/test_replace_string.py +++ b/.github/scripts/test_replace_string.py @@ -14,7 +14,7 @@ class TestReplaceString(unittest.TestCase): @mock.patch('git.Repo') def test_replace_string(self, repo): repo.return_value.ignored.return_value = False - old = '0.17.0' + old = '2023.1.0' new = '0.17.1' files = ('README.md', 'build.gradle.kts', 'notebook.ipynb') with TemporaryDirectory() as temp_dir: diff --git a/.github/scripts/test_resources/README.md b/.github/scripts/test_resources/README.md index e78a5d40..eebb6e32 100644 --- a/.github/scripts/test_resources/README.md +++ b/.github/scripts/test_resources/README.md @@ -1,17 +1,17 @@ # Title -[![Maven Central](https://img.shields.io/badge/Maven%20Central-0.17.0-blue)][14] +[![Maven Central](https://img.shields.io/badge/Maven%20Central-2023.1.0-blue)][14] ```kotlin -@file:DependsOn("com.gabrielfeo:gradle-enterprise-api-kotlin:0.17.0") +@file:DependsOn("com.gabrielfeo:gradle-enterprise-api-kotlin:2023.1.0") ``` ```kotlin -implementation("com.gabrielfeo:gradle-enterprise-api-kotlin:0.17.0") +implementation("com.gabrielfeo:gradle-enterprise-api-kotlin:2023.1.0") ``` ``` -%use gradle-enterprise-api-kotlin(version=0.17.0) +%use gradle-enterprise-api-kotlin(version=2023.1.0) ``` -[14]: https://central.sonatype.com/artifact/com.gabrielfeo/gradle-enterprise-api-kotlin/0.17.0 +[14]: https://central.sonatype.com/artifact/com.gabrielfeo/gradle-enterprise-api-kotlin/2023.1.0 diff --git a/.github/scripts/test_resources/build.gradle.kts b/.github/scripts/test_resources/build.gradle.kts index 4bfbefee..d01632d2 100644 --- a/.github/scripts/test_resources/build.gradle.kts +++ b/.github/scripts/test_resources/build.gradle.kts @@ -1,3 +1,3 @@ dependencies { - implementation("com.gabrielfeo:gradle-enterprise-api-kotlin:0.17.0") + implementation("com.gabrielfeo:gradle-enterprise-api-kotlin:2023.1.0") } diff --git a/.github/scripts/test_resources/notebook.ipynb b/.github/scripts/test_resources/notebook.ipynb index f58ce0aa..926a3abf 100644 --- a/.github/scripts/test_resources/notebook.ipynb +++ b/.github/scripts/test_resources/notebook.ipynb @@ -7,7 +7,7 @@ "cell_type": "code", "execution_count": 1, "source": [ - "%use gradle-enterprise-api-kotlin(version=0.17.0)" + "%use gradle-enterprise-api-kotlin(version=2023.1.0)" ], "outputs": [] } diff --git a/README.md b/README.md index f8c08fe3..bb7189b0 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Gradle Enterprise API Kotlin -[![Maven Central](https://img.shields.io/badge/Maven%20Central-0.17.0-blue)][14] -[![Javadoc](https://img.shields.io/badge/Javadoc-0.17.0-orange)][7] +[![Maven Central](https://img.shields.io/badge/Maven%20Central-2023.1.0-blue)][14] +[![Javadoc](https://img.shields.io/badge/Javadoc-2023.1.0-orange)][7] A Kotlin library to access the [Gradle Enterprise API][1], easy to use from: @@ -52,7 +52,7 @@ recommended over JitPack. ``` %useLatestDescriptors -%use gradle-enterprise-api-kotlin(version=0.17.0) +%use gradle-enterprise-api-kotlin(version=2023.1.0) ``` @@ -61,7 +61,7 @@ recommended over JitPack. Add to a Kotlin script ```kotlin -@file:DependsOn("com.gabrielfeo:gradle-enterprise-api-kotlin:0.17.0") +@file:DependsOn("com.gabrielfeo:gradle-enterprise-api-kotlin:2023.1.0") ``` @@ -71,7 +71,7 @@ recommended over JitPack. ```kotlin dependencies { - implementation("com.gabrielfeo:gradle-enterprise-api-kotlin:0.17.0") + implementation("com.gabrielfeo:gradle-enterprise-api-kotlin:2023.1.0") } ``` @@ -190,7 +190,7 @@ import com.gabrielfeo.gradle.enterprise.api.model.extension.* [11]: https://gabrielfeo.github.io/gradle-enterprise-api-kotlin/library/com.gabrielfeo.gradle.enterprise.api/-gradle-enterprise-api/shutdown.html [12]: https://gabrielfeo.github.io/gradle-enterprise-api-kotlin/library/com.gabrielfeo.gradle.enterprise.api/-config/-cache-config/cache-enabled.html [13]: https://gabrielfeo.github.io/gradle-enterprise-api-kotlin/library/com.gabrielfeo.gradle.enterprise.api/-config/-cache-config/index.html -[14]: https://central.sonatype.com/artifact/com.gabrielfeo/gradle-enterprise-api-kotlin/0.17.0 +[14]: https://central.sonatype.com/artifact/com.gabrielfeo/gradle-enterprise-api-kotlin/2023.1.0 [16]: https://gabrielfeo.github.io/gradle-enterprise-api-kotlin/library/com.gabrielfeo.gradle.enterprise.api/-config/api-url.html [17]: https://gabrielfeo.github.io/gradle-enterprise-api-kotlin/library/com.gabrielfeo.gradle.enterprise.api/-config/api-token.html [18]: https://gabrielfeo.github.io/gradle-enterprise-api-kotlin/library/com.gabrielfeo.gradle.enterprise.api/-builds-api/index.html diff --git a/examples/example-notebooks/MostFrequentBuilds.ipynb b/examples/example-notebooks/MostFrequentBuilds.ipynb index 9ddadc78..6fcf02fe 100644 --- a/examples/example-notebooks/MostFrequentBuilds.ipynb +++ b/examples/example-notebooks/MostFrequentBuilds.ipynb @@ -35,7 +35,7 @@ "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", "\n", "```kotlin\n", - "@file:DependsOn(\"com.gabrielfeo:gradle-enterprise-api-kotlin:0.17.0\")\n", + "@file:DependsOn(\"com.gabrielfeo:gradle-enterprise-api-kotlin:2023.1.0\")\n", "\n", "import com.gabrielfeo.gradle.enterprise.api.*\n", "import com.gabrielfeo.gradle.enterprise.api.model.*\n", @@ -45,7 +45,7 @@ "is the same as:\n", "\n", "```\n", - "%use gradle-enterprise-api-kotlin(version=0.17.0)\n", + "%use gradle-enterprise-api-kotlin(version=2023.1.0)\n", "```" ] }, @@ -57,7 +57,7 @@ "outputs": [], "source": [ "%useLatestDescriptors\n", - "%use gradle-enterprise-api-kotlin(version=0.17.0)\n", + "%use gradle-enterprise-api-kotlin(version=2023.1.0)\n", "%use coroutines(v=1.7.1)" ] }, diff --git a/examples/example-project/app/build.gradle.kts b/examples/example-project/app/build.gradle.kts index bc23c0fd..cc9b065f 100644 --- a/examples/example-project/app/build.gradle.kts +++ b/examples/example-project/app/build.gradle.kts @@ -14,5 +14,5 @@ java { } dependencies { - implementation("com.gabrielfeo:gradle-enterprise-api-kotlin:0.17.0") + implementation("com.gabrielfeo:gradle-enterprise-api-kotlin:2023.1.0") } diff --git a/examples/example-script.main.kts b/examples/example-script.main.kts index be884810..b54e89e5 100644 --- a/examples/example-script.main.kts +++ b/examples/example-script.main.kts @@ -15,7 +15,7 @@ * legacy tests. We should suggest they run test instead, leaving check for CI to run." */ -@file:DependsOn("com.gabrielfeo:gradle-enterprise-api-kotlin:0.17.0") +@file:DependsOn("com.gabrielfeo:gradle-enterprise-api-kotlin:2023.1.0") import com.gabrielfeo.gradle.enterprise.api.* import com.gabrielfeo.gradle.enterprise.api.model.* From 0ed79aa2d45fbf743bdc431f2d79953ddf81c303 Mon Sep 17 00:00:00 2001 From: Gabriel Feo Date: Mon, 9 Oct 2023 19:15:24 +0100 Subject: [PATCH 2/3] Revert test change --- .github/scripts/test_replace_string.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/scripts/test_replace_string.py b/.github/scripts/test_replace_string.py index 02af1dfc..29f94f43 100755 --- a/.github/scripts/test_replace_string.py +++ b/.github/scripts/test_replace_string.py @@ -14,7 +14,7 @@ class TestReplaceString(unittest.TestCase): @mock.patch('git.Repo') def test_replace_string(self, repo): repo.return_value.ignored.return_value = False - old = '2023.1.0' + old = '0.17.0' new = '0.17.1' files = ('README.md', 'build.gradle.kts', 'notebook.ipynb') with TemporaryDirectory() as temp_dir: From 566b323f30213f8931de61a89d2d275d8cd5b9cd Mon Sep 17 00:00:00 2001 From: Gabriel Feo Date: Tue, 10 Oct 2023 15:07:36 +0100 Subject: [PATCH 3/3] Revert test change --- .github/scripts/test_resources/README.md | 10 +++++----- .github/scripts/test_resources/build.gradle.kts | 2 +- .github/scripts/test_resources/notebook.ipynb | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/scripts/test_resources/README.md b/.github/scripts/test_resources/README.md index eebb6e32..e78a5d40 100644 --- a/.github/scripts/test_resources/README.md +++ b/.github/scripts/test_resources/README.md @@ -1,17 +1,17 @@ # Title -[![Maven Central](https://img.shields.io/badge/Maven%20Central-2023.1.0-blue)][14] +[![Maven Central](https://img.shields.io/badge/Maven%20Central-0.17.0-blue)][14] ```kotlin -@file:DependsOn("com.gabrielfeo:gradle-enterprise-api-kotlin:2023.1.0") +@file:DependsOn("com.gabrielfeo:gradle-enterprise-api-kotlin:0.17.0") ``` ```kotlin -implementation("com.gabrielfeo:gradle-enterprise-api-kotlin:2023.1.0") +implementation("com.gabrielfeo:gradle-enterprise-api-kotlin:0.17.0") ``` ``` -%use gradle-enterprise-api-kotlin(version=2023.1.0) +%use gradle-enterprise-api-kotlin(version=0.17.0) ``` -[14]: https://central.sonatype.com/artifact/com.gabrielfeo/gradle-enterprise-api-kotlin/2023.1.0 +[14]: https://central.sonatype.com/artifact/com.gabrielfeo/gradle-enterprise-api-kotlin/0.17.0 diff --git a/.github/scripts/test_resources/build.gradle.kts b/.github/scripts/test_resources/build.gradle.kts index d01632d2..4bfbefee 100644 --- a/.github/scripts/test_resources/build.gradle.kts +++ b/.github/scripts/test_resources/build.gradle.kts @@ -1,3 +1,3 @@ dependencies { - implementation("com.gabrielfeo:gradle-enterprise-api-kotlin:2023.1.0") + implementation("com.gabrielfeo:gradle-enterprise-api-kotlin:0.17.0") } diff --git a/.github/scripts/test_resources/notebook.ipynb b/.github/scripts/test_resources/notebook.ipynb index 926a3abf..f58ce0aa 100644 --- a/.github/scripts/test_resources/notebook.ipynb +++ b/.github/scripts/test_resources/notebook.ipynb @@ -7,7 +7,7 @@ "cell_type": "code", "execution_count": 1, "source": [ - "%use gradle-enterprise-api-kotlin(version=2023.1.0)" + "%use gradle-enterprise-api-kotlin(version=0.17.0)" ], "outputs": [] }