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

jvmTarget replaced #1766

Closed
Efimj opened this issue May 28, 2024 · 3 comments
Closed

jvmTarget replaced #1766

Efimj opened this issue May 28, 2024 · 3 comments

Comments

@Efimj
Copy link

Efimj commented May 28, 2024

How frequently does the bug occur?

Always

Description

Recently i updated my project to Java 17 and discovered kapt errors. After searching for errors I found this:

private fun updateKotlinOption(target: KotlinTarget) {
        target.compilations.all { compilation ->
            // Setup correct compiler options
            // FIXME AUTO-SETUP Are these to dangerous to apply under the hood?
            when (val options = compilation.kotlinOptions) {
                is KotlinJvmOptions -> {
                    options.jvmTarget = "1.8"
                }
            }
        }
    }

In this plugin:

id("io.realm.kotlin") version "1.9.0" apply false

Stacktrace & log output

FT ~ Opusrornnetarsshop tied A: 2705 202800 730% Execution failed for task ' :app:kaptGenerateStubsDebugKotLin’ .

> Inconsistent JVM-target compatibility detected for tasks ‘compileDebugJavaWithJavac' (17) and ‘kaptGenerateStubsDebugkotLin' (1.8).

* Try:
> Run with --info or =-debug option to get more log output.
> Run with --scan to get full insights.

> Get more help at https://nelp.aradle.org.

Can you reproduce the bug?

Always

Reproduction Steps

  1. use id("io.realm.kotlin") version "1.9.0" apply false
  2. try to change jvmTarget to 17

Version

14

What Atlas App Services are you using?

Local Database only

Are you using encryption?

No

Platform OS and version(s)

Android

Build environment

Android Studio version: Koala | 2024.1.1
Android Build Tools version: 8.4.1
Gradle version: 3.2-8.5

Copy link

sync-by-unito bot commented May 28, 2024

➤ PM Bot commented:

Jira ticket: RKOTLIN-1095

@rorbech
Copy link
Contributor

rorbech commented May 28, 2024

This was removed in #1514 and hasn't been part of our releases since 1.12.0. Please try to use a more recent version.

@rorbech rorbech closed this as completed May 28, 2024
@Efimj
Copy link
Author

Efimj commented May 28, 2024

Thanks 💜

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants