plugins { java id("com.gradleup.shadow") version "9.4.1" apply false } val projectVersion: String by project val projectGroup: String by project val javaVersion: String by project allprojects { group = projectGroup version = projectVersion repositories { mavenCentral() maven("https://repo.papermc.io/repository/maven-public/") maven("https://repo.extendedclip.com/releases/") // PlaceholderAPI maven("https://repo.selixe.com/repository/api/") // Atlantis Disguises } } subprojects { apply(plugin = "java") java { sourceCompatibility = JavaVersion.toVersion(javaVersion.toInt()) targetCompatibility = JavaVersion.toVersion(javaVersion.toInt()) } tasks.withType { options.encoding = "UTF-8" options.release.set(javaVersion.toInt()) } tasks.withType { useJUnitPlatform() } dependencies { val junitVersion: String by project val mockitoVersion: String by project testImplementation("org.junit.jupiter:junit-jupiter-api:$junitVersion") testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$junitVersion") testRuntimeOnly("org.junit.platform:junit-platform-launcher") testImplementation("org.mockito:mockito-core:$mockitoVersion") testImplementation("org.mockito:mockito-junit-jupiter:$mockitoVersion") } }