apply plugin: "java" sourceCompatibility = 1.8 [compileJava, compileTestJava]*.options*.encoding = 'UTF-8' sourceSets { main { java.srcDirs = [ "src/" ] } test { java.srcDirs = ["test/"] } } dependencies { testImplementation "org.junit.jupiter:junit-jupiter-engine:5.5.2" testImplementation "org.junit.platform:junit-platform-runner:1.5.2" api "com.badlogicgames.gdx:gdx:$gdxVersion" } test { useJUnitPlatform() }