Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: Fix compileKotlin task target in Spring modules #1864

Merged
merged 1 commit into from
Sep 21, 2023

Conversation

bog-walk
Copy link
Member

Gradle plugin was recently upgraded to 8.3, so warnings of compile task target compatibility became errors.

Tasks :spring-transaction:compileKotlin and :exposed-spring-boot-starter:compileKotlin failed with the following:

'compileJava' task (current target is 17) and 'compileKotlin' task (current target is 1.8) jvm target compatibility should be set to the same Java version.
Consider using JVM toolchain:

Fixed by setting compileKotlin task to target jdk 17 in both modules.

Gradle plugin was recently upgraded to 8.3, so warnings of compile task target
compatibility became errors.

Fixed by setting compileKotlin task to target jdk17.
@bog-walk bog-walk requested a review from e5l September 21, 2023 13:28
@bog-walk bog-walk merged commit ee207d0 into main Sep 21, 2023
3 checks passed
@bog-walk bog-walk deleted the bog-walk/fix-spring-compile-task branch September 21, 2023 14:02
saral pushed a commit to saral/Exposed that referenced this pull request Oct 3, 2023
Gradle plugin was recently upgraded to 8.3, so warnings of compile task target
compatibility became errors.

Tasks :spring-transaction:compileKotlin and :exposed-spring-boot-starter:compileKotlin failed with the following:

'compileJava' task (current target is 17) and 'compileKotlin' task (current target is 1.8) jvm target compatibility should be set to the same Java version.
Consider using JVM toolchain:


Fixed by setting compileKotlin task to target jdk17.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants