plugins { java id("com.diffplug.spotless") version "7.0.4" } repositories { mavenCentral() } dependencies { testImplementation(libs.junit.jupiter) testRuntimeOnly("org.junit.platform:junit-platform-launcher") } java { toolchain { languageVersion = JavaLanguageVersion.of(8) } } tasks.withType().configureEach { options.compilerArgs.addAll(listOf("-Xlint:all", "-Werror")) } spotless { java { palantirJavaFormat() removeUnusedImports() } } tasks.jar { archiveFileName = "theseus.jar" } tasks.named("test") { useJUnitPlatform() } tasks.withType().configureEach { isPreserveFileTimestamps = false isReproducibleFileOrder = true }