forked from apache/dubbo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dynamically generate native image config (apache#11795)
* ADD dubbo-maven-plugin * add dubbo-maven-plugin module Signed-off-by: crazyhzm <[email protected]> * fix license and compiler error Signed-off-by: crazyhzm <[email protected]> * fix license and ci error Signed-off-by: crazyhzm <[email protected]> * fix ci error Signed-off-by: crazyhzm <[email protected]> * Remove proxy-config, hard code Signed-off-by: crazyhzm <[email protected]> * ignoredModulesInDubboAll Signed-off-by: crazyhzm <[email protected]> * throw exception for generated adaptive class sources Signed-off-by: crazyhzm <[email protected]> * remove useless reflect config Signed-off-by: crazyhzm <[email protected]> * Dynamically generate native image config for graalvm, and remove the original native image config Signed-off-by: crazyhzm <[email protected]> * fix conflict Signed-off-by: crazyhzm <[email protected]> * remove .git.exec.error Signed-off-by: crazyhzm <[email protected]> * remove .git.exec.error Signed-off-by: crazyhzm <[email protected]> * remove useless import Signed-off-by: crazyhzm <[email protected]> --------- Signed-off-by: crazyhzm <[email protected]> Co-authored-by: Albumen Kevin <[email protected]>
- Loading branch information
Showing
36 changed files
with
1,827 additions
and
3,378 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,3 +48,5 @@ dubbo-demo/dubbo-demo-triple/build/* | |
# global registry center | ||
.tmp | ||
|
||
.git.exec.error | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
...e/dubbo-demo-native-consumer/src/main/resources/META-INF/native-image/reflect-config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[ | ||
{ | ||
"name": "org.apache.zookeeper.ClientCnxnSocketNIO", | ||
"methods": [ | ||
{ | ||
"name": "<init>", | ||
"parameterTypes": [ | ||
"org.apache.zookeeper.client.ZKClientConfig" | ||
] | ||
}, | ||
{ | ||
"name": "<init>", | ||
"parameterTypes": [] | ||
} | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
...e/dubbo-demo-native-provider/src/main/resources/META-INF/native-image/reflect-config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
[ | ||
{ | ||
"name": "org.apace.dubbo.graalvm.demo.DemoService", | ||
"allPublicMethods": true | ||
}, | ||
{ | ||
"name": "org.apache.dubbo.demo.graalvm.provider.DemoServiceImpl", | ||
"allDeclaredMethods": true | ||
}, | ||
{ | ||
"name": "org.apache.zookeeper.ClientCnxnSocketNIO", | ||
"methods": [ | ||
{ | ||
"name": "<init>", | ||
"parameterTypes": [ | ||
"org.apache.zookeeper.client.ZKClientConfig" | ||
] | ||
}, | ||
{ | ||
"name": "<init>", | ||
"parameterTypes": [] | ||
} | ||
] | ||
} | ||
] |
13 changes: 13 additions & 0 deletions
13
.../dubbo-demo-native-provider/src/main/resources/META-INF/native-image/resource-config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"resources": { | ||
"includes": [ | ||
{ | ||
"pattern": "\\Qdubbo.properties\\E" | ||
}, | ||
{ | ||
"pattern": "\\Qlog4j.properties\\E" | ||
} | ||
] | ||
}, | ||
"bundles": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
dubbo-maven-plugin/src/main/resources/META-INF/native-image/jni-config.json
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
dubbo-maven-plugin/src/main/resources/META-INF/native-image/proxy-config.json
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.