Skip to content

Commit

Permalink
Streamline native image config generation / Update native image config
Browse files Browse the repository at this point in the history
Motivation:

- Generating the native image config currently requires more than one
  manual steps not well-documented.
- We didn't update our native image config recently.

Modifications:

- Updated `README.md`
- `nativeImageConfig` task now merges the previously generated config,
  so that we don't need to merge it manually.
  - Added a new option `-Pscratch` that builds the config from scratch,
    which is disabled by default.
- `nativeImageConfig` task now removes the comment patterns in
  `resource-config.json` automatically.
- Added a few more filters to remove unnecessary entries in the
  generated native image config.
- Updated the native image config

Result:

- Only one manual step left until automating native image config
  generation
- Up-to-date native image config
  • Loading branch information
trustin committed Mar 18, 2024
1 parent ccb29fe commit 7d4e601
Show file tree
Hide file tree
Showing 10 changed files with 13,867 additions and 9,767 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
[
{
"type":"agent-extracted",
"classes":[
]
}
]
[ {
"type" : "agent-extracted",
"classes" : [ ]
} ]
Original file line number Diff line number Diff line change
@@ -1,89 +1,59 @@
[
{
"interfaces":["javax.ws.rs.core.HttpHeaders"]
},
{
"interfaces":["javax.ws.rs.core.Request"]
},
{
"interfaces":["javax.ws.rs.core.SecurityContext"]
},
{
"interfaces":["javax.ws.rs.core.UriInfo"]
},
{
"interfaces":["javax.ws.rs.ext.Providers"]
},
{
"interfaces":["net.bytebuddy.description.method.MethodDescription$InDefinedShape$AbstractBase$Executable"]
},
{
"interfaces":["net.bytebuddy.description.method.ParameterDescription$ForLoadedParameter$Parameter"]
},
{
"interfaces":["net.bytebuddy.description.method.ParameterList$ForLoadedExecutable$Executable"]
},
{
"interfaces":["net.bytebuddy.description.type.TypeDefinition$Sort$AnnotatedType"]
},
{
"interfaces":["net.bytebuddy.description.type.TypeDescription"]
},
{
"interfaces":["net.bytebuddy.description.type.TypeDescription$ForLoadedType$Dispatcher"]
},
{
"interfaces":["net.bytebuddy.description.type.TypeDescription$Generic"]
},
{
"interfaces":["net.bytebuddy.description.type.TypeDescription$Generic$AnnotationReader$Delegator$ForLoadedExecutableExceptionType$Dispatcher"]
},
{
"interfaces":["net.bytebuddy.description.type.TypeDescription$Generic$AnnotationReader$Delegator$ForLoadedExecutableParameterType$Dispatcher"]
},
{
"interfaces":["net.bytebuddy.description.type.TypeDescription$Generic$AnnotationReader$Delegator$ForLoadedMethodReturnType$Dispatcher"]
},
{
"interfaces":["net.bytebuddy.description.type.TypeDescription$Generic$AnnotationReader$ForComponentType$AnnotatedParameterizedType"]
},
{
"interfaces":["net.bytebuddy.description.type.TypeDescription$Generic$AnnotationReader$ForTypeArgument$AnnotatedParameterizedType"]
},
{
"interfaces":["net.bytebuddy.description.type.TypeDescription$Generic$AnnotationReader$ForTypeVariableBoundType$AnnotatedTypeVariable"]
},
{
"interfaces":["net.bytebuddy.description.type.TypeDescription$Generic$AnnotationReader$ForTypeVariableBoundType$OfFormalTypeVariable$FormalTypeVariable"]
},
{
"interfaces":["net.bytebuddy.description.type.TypeDescription$Generic$AnnotationReader$ForWildcardLowerBoundType$AnnotatedWildcardType"]
},
{
"interfaces":["net.bytebuddy.description.type.TypeDescription$Generic$AnnotationReader$ForWildcardUpperBoundType$AnnotatedWildcardType"]
},
{
"interfaces":["net.bytebuddy.dynamic.loading.ClassInjector$UsingLookup$MethodHandles"]
},
{
"interfaces":["net.bytebuddy.dynamic.loading.ClassInjector$UsingLookup$MethodHandles$Lookup"]
},
{
"interfaces":["net.bytebuddy.dynamic.loading.ClassInjector$UsingReflection$System"]
},
{
"interfaces":["net.bytebuddy.dynamic.loading.ClassInjector$UsingUnsafe$System"]
},
{
"interfaces":["net.bytebuddy.utility.JavaModule$Module"]
},
{
"interfaces":["net.bytebuddy.utility.JavaModule$Resolver"]
},
{
"interfaces":["org.jboss.resteasy.spi.HttpRequest"]
},
{
"interfaces":["org.jboss.resteasy.spi.ResteasyConfiguration"]
}
]
[ {
"interfaces" : [ "javax.ws.rs.core.HttpHeaders" ]
}, {
"interfaces" : [ "javax.ws.rs.core.Request" ]
}, {
"interfaces" : [ "javax.ws.rs.core.SecurityContext" ]
}, {
"interfaces" : [ "javax.ws.rs.core.UriInfo" ]
}, {
"interfaces" : [ "javax.ws.rs.ext.Providers" ]
}, {
"interfaces" : [ "net.bytebuddy.description.method.MethodDescription$InDefinedShape$AbstractBase$Executable" ]
}, {
"interfaces" : [ "net.bytebuddy.description.method.ParameterDescription$ForLoadedParameter$Parameter" ]
}, {
"interfaces" : [ "net.bytebuddy.description.method.ParameterList$ForLoadedExecutable$Executable" ]
}, {
"interfaces" : [ "net.bytebuddy.description.type.TypeDefinition$Sort$AnnotatedType" ]
}, {
"interfaces" : [ "net.bytebuddy.description.type.TypeDescription" ]
}, {
"interfaces" : [ "net.bytebuddy.description.type.TypeDescription$ForLoadedType$Dispatcher" ]
}, {
"interfaces" : [ "net.bytebuddy.description.type.TypeDescription$Generic" ]
}, {
"interfaces" : [ "net.bytebuddy.description.type.TypeDescription$Generic$AnnotationReader$Delegator$ForLoadedExecutableExceptionType$Dispatcher" ]
}, {
"interfaces" : [ "net.bytebuddy.description.type.TypeDescription$Generic$AnnotationReader$Delegator$ForLoadedExecutableParameterType$Dispatcher" ]
}, {
"interfaces" : [ "net.bytebuddy.description.type.TypeDescription$Generic$AnnotationReader$Delegator$ForLoadedMethodReturnType$Dispatcher" ]
}, {
"interfaces" : [ "net.bytebuddy.description.type.TypeDescription$Generic$AnnotationReader$ForComponentType$AnnotatedParameterizedType" ]
}, {
"interfaces" : [ "net.bytebuddy.description.type.TypeDescription$Generic$AnnotationReader$ForTypeArgument$AnnotatedParameterizedType" ]
}, {
"interfaces" : [ "net.bytebuddy.description.type.TypeDescription$Generic$AnnotationReader$ForTypeVariableBoundType$AnnotatedTypeVariable" ]
}, {
"interfaces" : [ "net.bytebuddy.description.type.TypeDescription$Generic$AnnotationReader$ForTypeVariableBoundType$OfFormalTypeVariable$FormalTypeVariable" ]
}, {
"interfaces" : [ "net.bytebuddy.description.type.TypeDescription$Generic$AnnotationReader$ForWildcardLowerBoundType$AnnotatedWildcardType" ]
}, {
"interfaces" : [ "net.bytebuddy.description.type.TypeDescription$Generic$AnnotationReader$ForWildcardUpperBoundType$AnnotatedWildcardType" ]
}, {
"interfaces" : [ "net.bytebuddy.dynamic.loading.ClassInjector$UsingLookup$MethodHandles" ]
}, {
"interfaces" : [ "net.bytebuddy.dynamic.loading.ClassInjector$UsingLookup$MethodHandles$Lookup" ]
}, {
"interfaces" : [ "net.bytebuddy.dynamic.loading.ClassInjector$UsingReflection$System" ]
}, {
"interfaces" : [ "net.bytebuddy.dynamic.loading.ClassInjector$UsingUnsafe$System" ]
}, {
"interfaces" : [ "net.bytebuddy.utility.JavaModule$Module" ]
}, {
"interfaces" : [ "net.bytebuddy.utility.JavaModule$Resolver" ]
}, {
"interfaces" : [ "org.jboss.resteasy.spi.HttpRequest" ]
}, {
"interfaces" : [ "org.jboss.resteasy.spi.ResteasyConfiguration" ]
} ]

0 comments on commit 7d4e601

Please sign in to comment.