Hello everyone,
I’m trying to build a fairly large Kotlin/Java project with Gradle. Locally, everything is fine, but the build server often has connectivity issues with JCenter:
A problem occurred configuring project ':buildSrc'.
> Could not resolve all files for configuration ':buildSrc:classpath'.
> Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.21.
Required by:
project :buildSrc > org.jetbrains.kotlin.jvm:org.jetbrains.kotlin.jvm.gradle.plugin:1.8.21
> Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.21.
> Could not parse POM https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.8.21/kotlin-gradle-plugin-1.8.21.pom
> Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugins-bom:1.8.21.
> Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugins-bom:1.8.21.
> Could not get resource 'https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-gradle-plugins-bom/1.8.21/kotlin-gradle-plugins-bom-1.8.21.pom'.
> Could not HEAD 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-gradle-plugins-bom/1.8.21/kotlin-gradle-plugins-bom-1.8.21.pom'. Received status code 403 from server: Forbidden
Does anybody have a hint for me how I can configure the gradle buildscript (Kotlinscript) to use a different plugin repository that does not rely on JCenter?
Thanks!