From 22b24b65962d9ca75797e9a615dec3222edda421 Mon Sep 17 00:00:00 2001 From: Piotr Krzeminski Date: Fri, 14 Jun 2024 11:13:29 +0200 Subject: [PATCH] chore: update URL to Maven Central It's the new one, used e.g. in Gradle in `mavenCentral()` function. --- .github/workflows/actions-versions.main.kts | 2 +- .github/workflows/bindings-server.main.kts | 2 +- .github/workflows/build.main.kts | 2 +- .github/workflows/check-if-action-bindings-up-to-date.main.kts | 2 +- .github/workflows/create-action-update-prs.main.kts | 2 +- .github/workflows/gradle-wrapper-validation.main.kts | 2 +- .github/workflows/release-common.main.kts | 2 +- .github/workflows/release-docs.main.kts | 2 +- .github/workflows/release.main.kts | 2 +- .github/workflows/setup-java.main.kts | 2 +- .github/workflows/setup-python.main.kts | 2 +- ...st-script-consuming-jit-bindings-old.main.do-not-compile.kts | 2 +- .../test-script-consuming-jit-bindings.main.do-not-compile.kts | 2 +- .../main/kotlin/buildsrc/tasks/AwaitMavenCentralDeployTask.kt | 2 +- docs/user-guide/migrating-to-Maven-based-bindings.md | 2 +- 15 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/actions-versions.main.kts b/.github/workflows/actions-versions.main.kts index 9eef19c4f..4b47f122a 100755 --- a/.github/workflows/actions-versions.main.kts +++ b/.github/workflows/actions-versions.main.kts @@ -1,5 +1,5 @@ #!/usr/bin/env kotlin -@file:Repository("https://repo1.maven.org/maven2/") +@file:Repository("https://repo.maven.apache.org/maven2/") @file:DependsOn("io.github.typesafegithub:github-workflows-kt:2.1.0") @file:Repository("https://bindings.krzeminski.it") diff --git a/.github/workflows/bindings-server.main.kts b/.github/workflows/bindings-server.main.kts index c0325e793..511352c45 100755 --- a/.github/workflows/bindings-server.main.kts +++ b/.github/workflows/bindings-server.main.kts @@ -1,5 +1,5 @@ #!/usr/bin/env kotlin -@file:Repository("https://repo1.maven.org/maven2/") +@file:Repository("https://repo.maven.apache.org/maven2/") @file:DependsOn("io.github.typesafegithub:github-workflows-kt:2.1.0") @file:Repository("https://bindings.krzeminski.it") diff --git a/.github/workflows/build.main.kts b/.github/workflows/build.main.kts index 986021767..06616abf1 100755 --- a/.github/workflows/build.main.kts +++ b/.github/workflows/build.main.kts @@ -1,5 +1,5 @@ #!/usr/bin/env kotlin -@file:Repository("https://repo1.maven.org/maven2/") +@file:Repository("https://repo.maven.apache.org/maven2/") @file:DependsOn("io.github.typesafegithub:github-workflows-kt:2.1.0") @file:Repository("https://bindings.krzeminski.it") diff --git a/.github/workflows/check-if-action-bindings-up-to-date.main.kts b/.github/workflows/check-if-action-bindings-up-to-date.main.kts index 05d515e3b..35a347418 100755 --- a/.github/workflows/check-if-action-bindings-up-to-date.main.kts +++ b/.github/workflows/check-if-action-bindings-up-to-date.main.kts @@ -1,5 +1,5 @@ #!/usr/bin/env kotlin -@file:Repository("https://repo1.maven.org/maven2/") +@file:Repository("https://repo.maven.apache.org/maven2/") @file:DependsOn("io.github.typesafegithub:github-workflows-kt:2.1.0") @file:Repository("https://bindings.krzeminski.it") diff --git a/.github/workflows/create-action-update-prs.main.kts b/.github/workflows/create-action-update-prs.main.kts index 77890915e..6f48c077e 100755 --- a/.github/workflows/create-action-update-prs.main.kts +++ b/.github/workflows/create-action-update-prs.main.kts @@ -1,5 +1,5 @@ #!/usr/bin/env kotlin -@file:Repository("https://repo1.maven.org/maven2/") +@file:Repository("https://repo.maven.apache.org/maven2/") @file:DependsOn("io.github.typesafegithub:github-workflows-kt:2.1.0") @file:Repository("https://bindings.krzeminski.it") diff --git a/.github/workflows/gradle-wrapper-validation.main.kts b/.github/workflows/gradle-wrapper-validation.main.kts index 4ca57a5ed..200cb8db3 100755 --- a/.github/workflows/gradle-wrapper-validation.main.kts +++ b/.github/workflows/gradle-wrapper-validation.main.kts @@ -1,5 +1,5 @@ #!/usr/bin/env kotlin -@file:Repository("https://repo1.maven.org/maven2/") +@file:Repository("https://repo.maven.apache.org/maven2/") @file:DependsOn("io.github.typesafegithub:github-workflows-kt:2.1.0") @file:Repository("https://bindings.krzeminski.it") diff --git a/.github/workflows/release-common.main.kts b/.github/workflows/release-common.main.kts index f8f916a6a..521ef26f1 100644 --- a/.github/workflows/release-common.main.kts +++ b/.github/workflows/release-common.main.kts @@ -1,5 +1,5 @@ #!/usr/bin/env kotlin -@file:Repository("https://repo1.maven.org/maven2/") +@file:Repository("https://repo.maven.apache.org/maven2/") @file:DependsOn("io.github.typesafegithub:github-workflows-kt:2.1.0") @file:Repository("https://bindings.krzeminski.it") diff --git a/.github/workflows/release-docs.main.kts b/.github/workflows/release-docs.main.kts index 11755c0c1..bdda24447 100755 --- a/.github/workflows/release-docs.main.kts +++ b/.github/workflows/release-docs.main.kts @@ -1,5 +1,5 @@ #!/usr/bin/env kotlin -@file:Repository("https://repo1.maven.org/maven2/") +@file:Repository("https://repo.maven.apache.org/maven2/") @file:DependsOn("io.github.typesafegithub:github-workflows-kt:2.1.0") @file:Repository("https://bindings.krzeminski.it") diff --git a/.github/workflows/release.main.kts b/.github/workflows/release.main.kts index 9ba9fd81f..2f86bf759 100755 --- a/.github/workflows/release.main.kts +++ b/.github/workflows/release.main.kts @@ -1,5 +1,5 @@ #!/usr/bin/env kotlin -@file:Repository("https://repo1.maven.org/maven2/") +@file:Repository("https://repo.maven.apache.org/maven2/") @file:DependsOn("io.github.typesafegithub:github-workflows-kt:2.1.0") @file:Repository("https://bindings.krzeminski.it") diff --git a/.github/workflows/setup-java.main.kts b/.github/workflows/setup-java.main.kts index 4686967d3..7fcb70d98 100644 --- a/.github/workflows/setup-java.main.kts +++ b/.github/workflows/setup-java.main.kts @@ -1,5 +1,5 @@ #!/usr/bin/env kotlin -@file:Repository("https://repo1.maven.org/maven2/") +@file:Repository("https://repo.maven.apache.org/maven2/") @file:DependsOn("io.github.typesafegithub:github-workflows-kt:2.1.0") @file:Repository("https://bindings.krzeminski.it") diff --git a/.github/workflows/setup-python.main.kts b/.github/workflows/setup-python.main.kts index eb4a92c90..57d2dd11c 100644 --- a/.github/workflows/setup-python.main.kts +++ b/.github/workflows/setup-python.main.kts @@ -1,5 +1,5 @@ #!/usr/bin/env kotlin -@file:Repository("https://repo1.maven.org/maven2/") +@file:Repository("https://repo.maven.apache.org/maven2/") @file:DependsOn("io.github.typesafegithub:github-workflows-kt:2.1.0") @file:Repository("https://bindings.krzeminski.it") diff --git a/.github/workflows/test-script-consuming-jit-bindings-old.main.do-not-compile.kts b/.github/workflows/test-script-consuming-jit-bindings-old.main.do-not-compile.kts index 396d28737..41303a447 100755 --- a/.github/workflows/test-script-consuming-jit-bindings-old.main.do-not-compile.kts +++ b/.github/workflows/test-script-consuming-jit-bindings-old.main.do-not-compile.kts @@ -1,5 +1,5 @@ #!/usr/bin/env kotlin -@file:Repository("https://repo1.maven.org/maven2/") +@file:Repository("https://repo.maven.apache.org/maven2/") @file:DependsOn("io.github.typesafegithub:github-workflows-kt:1.13.0") @file:Repository("http://localhost:8080/binding/") diff --git a/.github/workflows/test-script-consuming-jit-bindings.main.do-not-compile.kts b/.github/workflows/test-script-consuming-jit-bindings.main.do-not-compile.kts index d99224995..77cd9e515 100755 --- a/.github/workflows/test-script-consuming-jit-bindings.main.do-not-compile.kts +++ b/.github/workflows/test-script-consuming-jit-bindings.main.do-not-compile.kts @@ -1,5 +1,5 @@ #!/usr/bin/env kotlin -@file:Repository("https://repo1.maven.org/maven2/") +@file:Repository("https://repo.maven.apache.org/maven2/") @file:DependsOn("io.github.typesafegithub:github-workflows-kt:1.13.0") @file:Repository("http://localhost:8080") diff --git a/buildSrc/src/main/kotlin/buildsrc/tasks/AwaitMavenCentralDeployTask.kt b/buildSrc/src/main/kotlin/buildsrc/tasks/AwaitMavenCentralDeployTask.kt index a9492ac4a..e6e1c3656 100644 --- a/buildSrc/src/main/kotlin/buildsrc/tasks/AwaitMavenCentralDeployTask.kt +++ b/buildSrc/src/main/kotlin/buildsrc/tasks/AwaitMavenCentralDeployTask.kt @@ -28,7 +28,7 @@ abstract class AwaitMavenCentralDeployTask : DefaultTask() { @TaskAction fun awaitDeployment(): Unit = runBlocking { - val queriedUrl = "https://repo1.maven.org/maven2/" + + val queriedUrl = "https://repo.maven.apache.org/maven2/" + groupId.get().replace(".", "/") + "/${artifactId.get()}" + "/${version.get()}" + diff --git a/docs/user-guide/migrating-to-Maven-based-bindings.md b/docs/user-guide/migrating-to-Maven-based-bindings.md index d2769125a..b26ce536f 100644 --- a/docs/user-guide/migrating-to-Maven-based-bindings.md +++ b/docs/user-guide/migrating-to-Maven-based-bindings.md @@ -53,7 +53,7 @@ demand, and is then shipped as a separate Maven artifact from a custom Maven-com The following changes are required in our example workflow: ```diff #!/usr/bin/env kotlin - + @file:Repository("https://repo1.maven.org/maven2/") + + @file:Repository("https://repo.maven.apache.org/maven2/") @file:DependsOn("io.github.typesafegithub:github-workflows-kt:") + @file:Repository("https://bindings.krzeminski.it") + @file:DependsOn("actions:checkout:v4")