You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(plugin): new generate-graalvm-metadata Maven goal (#1759)
### 📝 Description
Create new `GenerateGraalVmMetadataMojo` that introduces new `generate-graalvm-metadata` goal. New goal generates GraalVM reachability metadata for `graphql-kotlin` servers.
Usage (this only generates metadata, in order to generate native image you will also need to configure `org.graalvm.buildtools:native-maven-plugin`, see example integration)
```xml
<plugin>
<groupId>com.expediagroup</groupId>
<artifactId>graphql-kotlin-maven-plugin</artifactId>
<version>${graphql-kotlin.version}</version>
<executions>
<execution>
<goals>
<goal>generate-graalvm-metadata</goal>
</goals>
<configuration>
<!-- list of packages that can contain our GraphQL schema -->
<packages>com.expediagroup.graalvm</packages>
<!-- application main class name -->
<mainClassName>com.example.ApplicationKt</mainClassName>
</configuration>
</execution>
</executions>
</plugin>
```
### 🔗 Related Issues
Corresponding Gradle plugin PR -> #1743
Copy file name to clipboardExpand all lines: integration/graalvm/common-graalvm-server/src/main/kotlin/com/expediagroup/graalvm/schema/ArgumentQuery.kt
Copy file name to clipboardExpand all lines: integration/graalvm/common-graalvm-server/src/main/kotlin/com/expediagroup/graalvm/schema/BasicMutation.kt
Copy file name to clipboardExpand all lines: integration/graalvm/common-graalvm-server/src/main/kotlin/com/expediagroup/graalvm/schema/CustomScalarQuery.kt
Copy file name to clipboardExpand all lines: integration/graalvm/common-graalvm-server/src/main/kotlin/com/expediagroup/graalvm/schema/InnerClassQuery.kt
Copy file name to clipboardExpand all lines: integration/graalvm/common-graalvm-server/src/main/kotlin/com/expediagroup/graalvm/schema/PolymorphicQuery.kt
Copy file name to clipboardExpand all lines: integration/graalvm/common-graalvm-server/src/main/kotlin/com/expediagroup/graalvm/schema/dataloader/ExampleDataLoader.kt
Copy file name to clipboardExpand all lines: integration/graalvm/common-graalvm-server/src/main/kotlin/com/expediagroup/graalvm/schema/model/ExampleInterface.kt
Copy file name to clipboardExpand all lines: integration/graalvm/common-graalvm-server/src/main/kotlin/com/expediagroup/graalvm/schema/model/ExampleUnion.kt
Copy file name to clipboardExpand all lines: integration/graalvm/common-graalvm-server/src/main/kotlin/com/expediagroup/graalvm/schema/model/InputAndOutput.kt
Copy file name to clipboardExpand all lines: integration/graalvm/common-graalvm-server/src/main/kotlin/com/expediagroup/graalvm/schema/model/InputOnly.kt
Copy file name to clipboardExpand all lines: integration/graalvm/common-graalvm-server/src/main/kotlin/com/expediagroup/graalvm/schema/model/OutputOnly.kt
Copy file name to clipboardExpand all lines: integration/graalvm/ktor-graalvm-server/src/main/resources/META-INF/services/com.expediagroup.graphql.plugin.schema.hooks.SchemaGeneratorHooksProvider
Copy file name to clipboardExpand all lines: integration/graalvm/ktor-graalvm-server/src/test/kotlin/com/expediagroup/graalvm/ktor/schema/TypesQueryTest.kt
+18-2Lines changed: 18 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,22 @@
1
+
/*
2
+
* Copyright 2023 Expedia, Inc
3
+
*
4
+
* Licensed under the Apache License, Version 2.0 (the "License");
5
+
* you may not use this file except in compliance with the License.
6
+
* You may obtain a copy of the License at
7
+
*
8
+
* https://www.apache.org/licenses/LICENSE-2.0
9
+
*
10
+
* Unless required by applicable law or agreed to in writing, software
11
+
* distributed under the License is distributed on an "AS IS" BASIS,
12
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+
* See the License for the specific language governing permissions and
0 commit comments