From af7c08e6355445cd8f29ebde8a3b396fb8cfc1d5 Mon Sep 17 00:00:00 2001 From: thinkAfCod Date: Tue, 15 Aug 2023 18:59:35 +0800 Subject: [PATCH] fix native-image build and run --- hildr-batcher/build.gradle | 4 ++ .../META-INF/native-image/reflect-config.json | 39 +++++++++++++++---- 2 files changed, 36 insertions(+), 7 deletions(-) diff --git a/hildr-batcher/build.gradle b/hildr-batcher/build.gradle index 52bde3d4..18a87a34 100644 --- a/hildr-batcher/build.gradle +++ b/hildr-batcher/build.gradle @@ -271,3 +271,7 @@ jar { exclude 'META-INF/*.DSA', 'META-INF/*.RSA', 'META-INF/*.SF' } } + +nativeCompile { + enabled = false +} diff --git a/hildr-node/src/main/resources/META-INF/native-image/reflect-config.json b/hildr-node/src/main/resources/META-INF/native-image/reflect-config.json index 9f6a634b..b1653e6d 100644 --- a/hildr-node/src/main/resources/META-INF/native-image/reflect-config.json +++ b/hildr-node/src/main/resources/META-INF/native-image/reflect-config.json @@ -827,9 +827,18 @@ }, { "name":"org.web3j.protocol.core.Response$Error", - "allDeclaredFields":true, - "queryAllDeclaredMethods":true, - "queryAllDeclaredConstructors":true + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "queryAllPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredFields": true, + "allPublicFields": true }, { "name":"org.web3j.protocol.core.methods.request.EthFilter", @@ -1547,7 +1556,7 @@ "allPublicFields": true }, { - "name" : "io.optimism.engine.ExecutionPayload$EpochReq", + "name" : "io.optimism.engine.ExecutionPayload$PayloadAttributes$EpochReq", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1562,7 +1571,7 @@ "allPublicFields": true }, { - "name" : "io.optimism.engine.ExecutionPayload$PayloadAttributesReq", + "name" : "io.optimism.engine.ExecutionPayload$PayloadAttributes$PayloadAttributesReq", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1576,6 +1585,7 @@ "allDeclaredFields": true, "allPublicFields": true }, + { "name" : "io.optimism.engine.ForkChoiceUpdate", "queryAllDeclaredConstructors": true, @@ -1712,7 +1722,7 @@ "allPublicFields": true }, { - "name" : "io.optimism.engine.ExecutionPayload$PayloadAttributesReq", + "name" : "org.web3j.protocol.core.methods.response.AccessListObject", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1727,7 +1737,22 @@ "allPublicFields": true }, { - "name" : "org.web3j.protocol.core.methods.response.AccessListObject", + "name" : "io.optimism.utilities.derive.stages.Batch", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "queryAllPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredFields": true, + "allPublicFields": true + }, + { + "name" : "io.optimism.utilities.derive.stages.Frame", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true,