By default there is no application plugin, so lets set it
![](http://digital-flame.ru/wp-content/uploads/2023/09/image-1024x476.png)
plugins {
id("application")
}
application {
mainClass.set("org.example.Main");
}
group = "org.example"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
testImplementation(platform("org.junit:junit-bom:5.9.1"))
testImplementation("org.junit.jupiter:junit-jupiter")
}
tasks.test {
useJUnitPlatform()
}