Commit Graph

6 Commits

Author SHA1 Message Date
Akash Yadav 1730d0ae67 fix(tooling-api): project initialization failure when the project contains a Java library module
This happens due to the use of relocated packages in AndroidIDE's Java Compiler API. The 'JavaModuleCompilerSettings' class references the 'javax.lang.model.SourceVersion.RELEASE_11' enum.
However, in AndroidIDE, the SourceVersion class has the package name 'jdkx.lang.model'.

The project compiles successfully as the ':subprojects:tooling-api-model' module is a Java library due to which, 'javax.lang.model.SourceVersion' can be referenced without any errors.
However at runtime, there is no such class and hence the 'NoClassDefFoundError' is thrown. This exception is silently logged to the error stream by the JSONRpc protocol and hence it
cannot be seen in the IDE logs.

This closes #875.
2023-03-18 13:48:19 +05:30
Akash Yadav 2a841748b8 fix: invalid path specified in :subprojects:tooling-api-model:copyToTestDir Gradle task 2023-02-12 00:12:35 +05:30
Akash Yadav 5542c690cc fix(deps/tooling-api): update builder-model to v7.4.0 2023-01-19 09:40:30 +05:30
Akash Yadav 012ae9927a tests: try to fix issues related to tooling-api-all.jar 2023-01-06 23:39:02 +05:30
Akash Yadav 42a3e71114 chore: migrate to Kotlin DSL and Version Catalog 2022-12-30 23:24:38 +05:30
Akash Yadav c9c6803052 refactor: rename module :build-tools to :subprojects 2022-12-21 18:36:08 +05:30