Skip to content
Snippets Groups Projects
Unverified Commit acd8afb1 authored by dpsutton's avatar dpsutton Committed by GitHub
Browse files

Fix reflection warnings (#16005)

log4j includes different class files for different jvm versions. This
means our uberjar includes these versions so we are a multi-release
jar. Need to set this in our manifest.

Fixes the reflection warning seen on startup on jdk 11's

~/p/w/metabase ❯❯❯ java -jar target/uberjar/metabase.jar
WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.
parent 8d3ae7b0
No related branches found
No related tags found
No related merge requests found
......@@ -170,9 +170,11 @@
:main ^:skip-aot metabase.core
;; Liquibase uses this manifest parameter to dynamically find extensions at startup (via classpath scanning, etc)
:manifest
{"Liquibase-Package"
{;; log4j is multi-release and lein uberjar doesn't set this correctly in the manifest
"Multi-Release" true
;; Liquibase uses this manifest parameter to dynamically find extensions at startup (via classpath scanning, etc)
"Liquibase-Package"
#= (eval
(str "liquibase.change,liquibase.changelog,liquibase.database,liquibase.parser,liquibase.precondition,"
"liquibase.datatype,liquibase.serializer,liquibase.sqlgenerator,liquibase.executor,"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment