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

Setting JupyterApiResourcesTask.libraryProducers doesn't disable kapt that causes incompatibility with JDK 16 #322

Closed
CommanderTvis opened this issue Aug 19, 2021 · 6 comments
Labels
documentation problem Some user problem that is not really a bug

Comments

@CommanderTvis
Copy link
Member

CommanderTvis commented Aug 19, 2021

Build script: https://github.com/mipt-npm/kmath/blob/foreign-memory/kmath-jupyter/build.gradle.kts
Exception:

Caused by: java.lang.IllegalAccessError: class org.jetbrains.kotlin.kapt3.base.KaptContext (in unnamed module @0x6003f591) cannot access class com.sun.tools.javac.util.Context (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.util to unnamed module @0x6003f591
	at org.jetbrains.kotlin.kapt3.base.KaptContext.<init>(KaptContext.kt:29)
	at org.jetbrains.kotlin.kapt3.base.Kapt.kapt(Kapt.kt:33)
@CommanderTvis CommanderTvis changed the title Setting tasks.processJupyterApiResources.get().libraryProducers doesn't disable kapt run causing incompatibility with JDK 16 Setting JupyterApiResourcesTask.libraryProducers doesn't disable kapt run causing incompatibility with JDK 16 Aug 19, 2021
@CommanderTvis CommanderTvis changed the title Setting JupyterApiResourcesTask.libraryProducers doesn't disable kapt run causing incompatibility with JDK 16 Setting JupyterApiResourcesTask.libraryProducers doesn't disable kapt that causes incompatibility with JDK 16 Aug 19, 2021
@ileasile ileasile added the problem Some user problem that is not really a bug label Aug 19, 2021
@ileasile
Copy link
Contributor

Hi! Please set kotlin.jupyter.add.scanner Gradle property to false (i.e. in gradle.properties) and recheck

@CommanderTvis
Copy link
Member Author

CommanderTvis commented Aug 19, 2021

kotlin.jupyter.add.scanner

That works but should be mentioned in the documentation.

@ileasile
Copy link
Contributor

It is mentioned a bit above in the same document

@ileasile
Copy link
Contributor

You may PR edits to this file to make it clearer

@CommanderTvis
Copy link
Member Author

It is mentioned a bit above in the same document

It is, but it's unclear that removing that dependency disables kapt.

@ileasile ileasile added documentation and removed problem Some user problem that is not really a bug labels Aug 19, 2021
@ileasile
Copy link
Contributor

Will be glad to merge the changes to the documentation that makes it clearer

@ileasile ileasile added the problem Some user problem that is not really a bug label Aug 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation problem Some user problem that is not really a bug
Projects
None yet
Development

No branches or pull requests

2 participants