From c79b668a37c2150512d7e7fd165dc5f10f298c8c Mon Sep 17 00:00:00 2001 From: BoomEaro <21033866+BoomEaro@users.noreply.github.com> Date: Tue, 28 Jun 2022 13:09:58 +0300 Subject: [PATCH] Always compile project to java 8 with UTF-8 encoding --- build.gradle | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/build.gradle b/build.gradle index 29e65bb..bcac8c3 100644 --- a/build.gradle +++ b/build.gradle @@ -6,6 +6,15 @@ plugins { group 'ru.nanit' version '1.3.4' +compileJava { + options.encoding = "UTF-8" +} + +tasks.withType(JavaCompile) { + sourceCompatibility = JavaVersion.VERSION_1_8 + targetCompatibility = JavaVersion.VERSION_1_8 +} + repositories { mavenCentral() }