How does TeaVM deal with gradle dependencies?

79 views
Skip to first unread message

a a

unread,
Jul 20, 2024, 5:48:38 PM7/20/24
to TeaVM
Will I have to include the source of the libs I need in my project for TeaVM to build it properly, or does TeaVM automatically detect things in my dependencies block?

Alexey Andreev

unread,
Jul 21, 2024, 5:27:20 AM7/21/24
to TeaVM
TeaVM does not need source code at all, as it consumes only bytecode. But if you want better debugging exprerience and turn on generation of source maps, then TeaVM gradle plugin will try to resolve source artifacts for dependencies in order to attach sources to generated source maps

суббота, 20 июля 2024 г. в 23:48:38 UTC+2, ilent...@gmail.com:

a a

unread,
Jul 25, 2024, 10:43:13 PM7/25/24
to TeaVM
Got it, thank you!

a a

unread,
Aug 3, 2024, 5:01:15 PM8/3/24
to TeaVM
How do I make TeaVM use a "fat jar" produced with John Rengelman's Shadow gradle plugin instead of the output produced by gradle build?

On Sunday, July 21, 2024 at 4:27:20 AM UTC-5 konsol...@gmail.com wrote:

Alexey Andreev

unread,
Aug 5, 2024, 4:34:49 PM8/5/24
to te...@googlegroups.com


How do I make TeaVM use a "fat jar" produced with John Rengelman's Shadow gradle plugin instead of the output produced by gradle build?

I have even not a slightest idea why you would want this. This fat jar is build from some project's classpath, right? So the only difference for case of non far jar is that TeaVM has to take classes from various jar files, but this should not be a problem.

Anyway, if you want to, you can try to configure classpath property of generateJavaScript task (see details on ConfigurableFileCollections). You can also register and configure your own taks of type TeaVMTask. Please, refer to plugin source code.

Reply all
Reply to author
Forward
0 new messages