Issue with org.jetbrains.kotlin.jvm


I have issus with org.jetbrains.kotlin.jvm

When I run it in Dockefile I have this error :

* What went wrong:
Plugin [id: 'org.jetbrains.kotlin.jvm', version: '1.4.0'] was not found in any of the following sources:

- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Plugin Repositories (could not resolve plugin artifact 'org.jetbrains.kotlin.jvm:org.jetbrains.kotlin.jvm.gradle.plugin:1.4.0')
  Searched in the following repositories:
    Gradle Central Plugin Repository

I gradle build is like this

import io.quarkus.gradle.tasks.QuarkusBuild
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

group = "ai.buster"
version = "1.0-SNAPSHOT"

plugins {
    kotlin("jvm") version "1.4.0"
    id("io.quarkus") version "1.8.0.Final"
    id("org.jetbrains.kotlin.plugin.allopen") version "1.4.10"

repositories {

dependencies {

Have you an idea about the problem ?
Just notice gradle build work, except is it runs inside Dockerfile

Try adding jcenter as repository in the build block