plugins { id 'application' id ("org.openjfx.javafxplugin").version("0.1.0") } sourceCompatibility = 17 version = '1.0.0' compileJava.options.encoding = 'UTF-8' repositories { mavenCentral() } // We work with the javafx version mapping the toolChain version. // Attention: 17.0.8 works on mac, 17.0.2 not anymore (13.9.2024) javafx { version = "17.0.8" modules = [ 'javafx.controls', 'javafx.fxml', 'javafx.media' ] } // Apply a specific Java toolchain to ease working on different environments. java { toolchain { languageVersion = JavaLanguageVersion.of(17) } } dependencies { // https://mvnrepository.com/artifact/org.slf4j/slf4j-api implementation("org.slf4j:slf4j-api:2.0.17") implementation ("org.slf4j:slf4j-simple:2.0.9") // testImplementation 'de.tum.in.ase:artemis-java-test-sandbox:1.13.0' } application { // Define the main class for the application. // mainClass = "prog.ex15.monolingual.gui.MonolingualWelcomeLauncher" mainClass = "prog.ex15.solution.i18ncountries.gui.MultilingualWelcomeLauncher" } sourceSets { main { java { srcDir 'src' } resources { srcDirs = ['resources'] } } test { java { srcDir 'testsrc' } } } tasks.named('test') { // Use JUnit Platform for unit tests. useJUnitPlatform() }