From 5728cd2e2e0eda4ff6eabc24ffaa456ff8b8fe3c Mon Sep 17 00:00:00 2001 From: Geoffroy Jamgotchian Date: Thu, 12 Dec 2024 13:29:27 +0100 Subject: [PATCH] Fix ODRE geo data loader Signed-off-by: Geoffroy Jamgotchian --- java/pom.xml | 7 +++++++ .../jackson-databind/reflect-config.json | 3 +++ .../com.powsybl/powsybl-iidm-geodata/reflect-config.json | 9 +++++++++ 3 files changed, 19 insertions(+) create mode 100644 java/src/main/resources/META-INF/native-image/com.powsybl/powsybl-iidm-geodata/reflect-config.json diff --git a/java/pom.xml b/java/pom.xml index 21795c9f3e..d672f61937 100644 --- a/java/pom.xml +++ b/java/pom.xml @@ -63,6 +63,8 @@ 17 4.4 + 1.11.0 + 23.0.0 3.1.0 5.10.0 @@ -179,6 +181,11 @@ logback-core compile + + org.apache.commons + commons-csv + ${commons-csv.version} + org.codehaus.janino diff --git a/java/src/main/resources/META-INF/native-image/com.fasterxml.jackson.core/jackson-databind/reflect-config.json b/java/src/main/resources/META-INF/native-image/com.fasterxml.jackson.core/jackson-databind/reflect-config.json index 3a1e03cc96..4fdd5dc843 100644 --- a/java/src/main/resources/META-INF/native-image/com.fasterxml.jackson.core/jackson-databind/reflect-config.json +++ b/java/src/main/resources/META-INF/native-image/com.fasterxml.jackson.core/jackson-databind/reflect-config.json @@ -6,5 +6,8 @@ { "name":"com.fasterxml.jackson.databind.ext.Java7SupportImpl", "methods":[{"name":"","parameterTypes":[] }] +}, +{ + "name":"[Lcom.fasterxml.jackson.databind.deser.Deserializers;" } ] diff --git a/java/src/main/resources/META-INF/native-image/com.powsybl/powsybl-iidm-geodata/reflect-config.json b/java/src/main/resources/META-INF/native-image/com.powsybl/powsybl-iidm-geodata/reflect-config.json new file mode 100644 index 0000000000..d0c840b697 --- /dev/null +++ b/java/src/main/resources/META-INF/native-image/com.powsybl/powsybl-iidm-geodata/reflect-config.json @@ -0,0 +1,9 @@ +[ +{ + "name":"com.powsybl.iidm.geodata.odre.OdreGeoDataAdderPostProcessor" +}, +{ + "name":"com.powsybl.iidm.geodata.utils.GeoShapeDeserializer", + "methods":[{"name":"","parameterTypes":[] }] +} +]