From e0c5e82962f12b886336f6fee06dab69e37e4596 Mon Sep 17 00:00:00 2001 From: Alexandre Rossi Date: Tue, 10 Mar 2026 07:44:01 +0100 Subject: [PATCH] plugin jvm: allow to set JVM compat release --- plugins/jvm/uwsgiplugin.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/jvm/uwsgiplugin.py b/plugins/jvm/uwsgiplugin.py index 385301f0a..241930d26 100644 --- a/plugins/jvm/uwsgiplugin.py +++ b/plugins/jvm/uwsgiplugin.py @@ -79,9 +79,13 @@ else: os.environ['LD_RUN_PATH'] = JVM_LIBPATH[0][2:] +if 'UWSGICONFIG_JVM_RELEASE' in os.environ: + release = '--release %s' % os.environ['UWSGICONFIG_JVM_RELEASE'] +else: + release = '' def post_build(config): - if subprocess.call("javac %s/plugins/jvm/uwsgi.java" % os.getcwd(), shell=True) != 0: + if subprocess.call("javac %s %s/plugins/jvm/uwsgi.java" % (release, os.getcwd()), shell=True) != 0: os._exit(1) if subprocess.call("cd %s/plugins/jvm ; jar cvf uwsgi.jar *.class" % os.getcwd(), shell=True) != 0: os._exit(1)