From 49040af03e2eadd6dc1b8109cc39027bcfb7851e Mon Sep 17 00:00:00 2001 From: itsTyrion Date: Sat, 18 Nov 2023 01:52:00 +0100 Subject: [PATCH] Update dependencies; explicitly set UTF-8 encoding --- build.gradle.kts | 19 +++++++++++-------- gradle/wrapper/gradle-wrapper.properties | 2 +- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index ef12193..643efd0 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -6,7 +6,7 @@ plugins { id("org.cadixdev.licenser") version "0.6.1" } -base.archivesName(project.name.toLowerCase()) +base.archivesName(project.name.lowercase()) sourceSets.create("java11") { java.srcDir("src/main/java11") @@ -27,15 +27,15 @@ repositories { } dependencies { - api("org.apache.logging.log4j:log4j-core:2.14.1") - annotationProcessor("org.apache.logging.log4j:log4j-core:2.14.1") + api("org.apache.logging.log4j:log4j-core:2.21.1") + annotationProcessor("org.apache.logging.log4j:log4j-core:2.21.1") - api("org.jline:jline-reader:3.20.0") + api("org.jline:jline-reader:3.24.1") - compileOnly("org.checkerframework:checker-qual:3.17.0") + compileOnly("org.checkerframework:checker-qual:3.32.0") - testImplementation("org.junit.jupiter:junit-jupiter-api:5.7.2") - testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.7.2") + testImplementation("org.junit.jupiter:junit-jupiter-api:5.9.2") + testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.9.2") "intTestImplementation"(files(tasks.named("jar"))) } @@ -57,15 +57,18 @@ tasks.jar { tasks.named("compileJava") { options.release.set(8) + options.encoding = "UTF-8" } tasks.named("compileJava11Java") { options.release.set(11) options.javaModuleVersion.set(project.version as String) + options.encoding = "UTF-8" } tasks.named("compileIntTestJava") { options.release.set(11) + options.encoding = "UTF-8" } tasks.withType { @@ -80,7 +83,7 @@ publishing { publications { register("mavenJava") { from(components["java"]) - artifactId = project.name.toLowerCase() + artifactId = project.name.lowercase() pom { val url: String by project diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index ffed3a2..e411586 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists