allprojects { apply() tasks.withType { options.encoding = Charsets.UTF_8.name() options.release.set(16) } configure { toolchain.languageVersion.set(JavaLanguageVersion.of(16)) } }