plugins { id 'java' id 'application' id 'checkstyle' id 'jacoco' } repositories { mavenCentral() } dependencies { testImplementation 'org.junit.jupiter:junit-jupiter:5.10.0' testRuntimeOnly 'org.junit.platform:junit-platform-launcher' } application { mainClass = 'com.example.App' } test { useJUnitPlatform() finalizedBy jacocoTestReport } jacocoTestReport { dependsOn test reports { xml.required = true html.required = true } } checkstyle { toolVersion = '10.12.0' configFile = file('config/checkstyle/checkstyle.xml') } java { toolchain { languageVersion = JavaLanguageVersion.of(17) } }