Skip to content

Commit

Permalink
feature: init
Browse files Browse the repository at this point in the history
  • Loading branch information
heowc committed May 1, 2024
1 parent 8989a00 commit 3037c35
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ dependencies {
implementation 'org.jgrapht:jgrapht-io:1.5.2'

implementation 'com.github.javaparser:javaparser-core:3.25.10'
// implementation 'org.graalvm.polyglot:js:24.0.1'
// implementation 'guru.nidi.com.eclipsesource.j2v8:j2v8_macosx_x86_64:4.6.0'
// implementation 'guru.nidi.com.eclipsesource.j2v8:j2v8_linux_x86_64:4.6.0'

testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.shell:spring-shell-test'
Expand All @@ -50,7 +47,10 @@ graalvmNative {
}
binaries {
main {
buildArgs.add('--verbose')
buildArgs.add('-H:IncludeResources=.*js$')
buildArgs.add("-H:ReflectionConfigurationFiles=${projectDir}/src/main/resources/META-INF/native-image/reflect-config.json")
buildArgs.add("-H:ResourceConfigurationFiles=${projectDir}/src/main/resources/META-INF/native-image/resource-config.json")
}
}
}
Expand Down
16 changes: 16 additions & 0 deletions src/main/resources/META-INF/native-image/reflect-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[
{
"name": "com.github.javaparser.ast.body.FieldDeclaration",
"allPublic": true,
"allDeclaredConstructors": true,
"allDeclaredMethods": true,
"allDeclaredFields": true
},
{
"name" : "com.github.javaparser.ast.expr.VariableDeclarationExpr",
"allPublic" : true,
"allDeclaredConstructors" : true,
"allDeclaredMethods" : true,
"allDeclaredFields" : true
}
]
8 changes: 8 additions & 0 deletions src/main/resources/META-INF/native-image/resource-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"resources": {
"includes": [
{"pattern" : "org/apache/commons/exec/CommandLine.class"},
{"pattern" : "org/apache/batik/transcoder/Transcoder.class"}
]
}
}
7 changes: 7 additions & 0 deletions src/main/resources/banner.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
__ __ _______ _______
| | | || || |
| |_| || ___|| _ |
| || |___ | | | |
| || ___|| |_| |
| _ || |___ | |
|__| |__||_______||_______|

0 comments on commit 3037c35

Please sign in to comment.