How can I point the scripts from installDist to use an embedded JRE? (Gradle)

Is there any way for me to get installDist to use a JRE for execution I’d embed alongside it? For example:

+- bin
   +- (the scripts generated by installDist)
+- jre
   +- (embedded JRE)
+- lib
   +- (JREs and resources)

If possible, how could I make such an embedding and modification of the generated scripts automatic through a Gradle task using Kotlin DSL?

Leave a Reply

Notify of