Java. Simple Gradle Application

By default there is no application plugin, so lets set it

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()
}

This entry was posted in Без рубрики. Bookmark the permalink.