Skip to content

Commit

Permalink
change resources encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
Jsinco committed Nov 18, 2024
1 parent 2aac309 commit 577c646
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ plugins {
}

val langVersion: Int = 17
val encoding = "UTF-8"

group = "com.dre.brewery"
version = "3.3.5"
version = "3.3.5-SNAPSHOT"

repositories {
mavenCentral()
Expand Down Expand Up @@ -64,7 +65,12 @@ dependencies {




tasks {
withType<JavaCompile>().configureEach {
options.encoding = encoding
}

build {
dependsOn(shadowJar)
finalizedBy("kotlinReducedJar")
Expand All @@ -74,9 +80,7 @@ tasks {
archiveClassifier.set("original")
//enabled = false // Shadow produces our jar files
}
withType<JavaCompile>().configureEach {
options.encoding = "UTF-8"
}

test {
useJUnitPlatform()
}
Expand All @@ -87,7 +91,7 @@ tasks {
"tokens" to mapOf("version" to project.version.toString()),
"beginToken" to "\${",
"endToken" to "}"
))
)).filteringCharset = encoding
}

shadowJar {
Expand Down

0 comments on commit 577c646

Please sign in to comment.