java2typescript icon indicating copy to clipboard operation
java2typescript copied to clipboard

Error on process project class using gradle

Open eloyleonardo opened this issue 3 years ago • 1 comments

I'm trying to setup this lib on my project, but when i map a class from my project it gives me class not found exception.

i made this repo with a reproduction of the problem: https://github.com/eloyleonardo/test-d-ts.

If i remove the the line with my custom class all pass.

It looks like the processor doesn't have access to the project classes (classpath), but i can't find any tricks to make this works.

Is this expected ? Or is there any change on gradle to the processor find my class ?

eloyleonardo avatar Nov 02 '21 15:11 eloyleonardo

Hi @eloyleonardo

It is not expected behavior. I use maven rather than gradle and I never had such problem. I haven't a great expertise on gradle so currently I haven't answers to your questions

We need to check the gradle processor features to understand if there are some options that solve this problem

bsorrentino avatar Nov 02 '21 22:11 bsorrentino