Skip to content

Commit

Permalink
fixed error
Browse files Browse the repository at this point in the history
  • Loading branch information
munishchouhan committed Dec 11, 2024
1 parent 89032b3 commit 6d01d6b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
20 changes: 12 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,19 @@ task buildInfo {
}
}

java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}

compileJava {
sourceCompatibility = JavaVersion.toVersion("21")
targetCompatibility = JavaVersion.toVersion("21")
options.compilerArgs += ["-Aproject=${project.name}"]
dependsOn buildInfo
options.release.set(17)
}

tasks.withType(GroovyCompile).configureEach {
sourceCompatibility = '17'
targetCompatibility = '17'
}

shadowJar {
Expand All @@ -123,10 +131,6 @@ graalvmNative {
buildArgs.add('-H:+AddAllCharsets')
buildArgs.add('-H:EnableURLProtocols=https,http')
buildArgs.add('-H:+ReportExceptionStackTraces')

javaLauncher = javaToolchains.launcherFor {
languageVersion = JavaLanguageVersion.of(17)
}
}

test {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
micronautVersion=4.7.1
native.gradle.plugin.version = 0.9.6
native.gradle.plugin.version = 0.10.4
junit.jupiter.version = 5.8.1
junit.platform.version = 1.8.1

0 comments on commit 6d01d6b

Please sign in to comment.