Skip to content

Commit

Permalink
fix: add reflection config to make native build work (#71)
Browse files Browse the repository at this point in the history
Closes #70
  • Loading branch information
ia3andy authored Jul 26, 2019
1 parent 67d4f38 commit 69f31b1
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 21 deletions.
2 changes: 1 addition & 1 deletion build_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -exv
IMAGE="quay.io/launcher/launcher-quarkus"
IMAGE_TAG=$(git rev-parse --short=7 HEAD)

docker build -f src/main/docker/Dockerfile.jvm.multistage -t "${IMAGE}:${IMAGE_TAG}" .
docker build -f src/main/docker/Dockerfile.native.multistage -t "${IMAGE}:${IMAGE_TAG}" .

if [[ -n "$QUAY_USER" && -n "$QUAY_TOKEN" ]]; then
DOCKER_CONF="$PWD/.docker"
Expand Down
21 changes: 1 addition & 20 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,6 @@
<groupId>io.quarkus</groupId>
<artifactId>quarkus-hibernate-validator</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-core-deployment</artifactId>
<version>${version.quarkus}</version>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-devtools-common</artifactId>
Expand Down Expand Up @@ -144,20 +139,6 @@
<workingDirectory>src/main/frontend</workingDirectory>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${version.maven-compiler-plugin}</version>
<configuration>
<annotationProcessorPaths>
<path>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-extension-processor</artifactId>
<version>${version.quarkus}</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>
<plugin>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-maven-plugin</artifactId>
Expand All @@ -168,7 +149,7 @@
<goal>build</goal>
</goals>
<configuration>
<additionalBuildArgs>-H:ResourceConfigurationFiles=${project.basedir}/resource-config.json</additionalBuildArgs>
<additionalBuildArgs>-H:ResourceConfigurationFiles=${project.basedir}/resources-config.json,-H:ReflectionConfigurationFiles=${project.basedir}/reflection-config.json</additionalBuildArgs>
</configuration>
</execution>
</executions>
Expand Down
11 changes: 11 additions & 0 deletions reflection-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[
{
"name" : "io.quarkus.dependencies.Extension",
"allDeclaredConstructors" : true,
"allPublicConstructors" : true,
"allDeclaredMethods" : true,
"allPublicMethods" : true,
"allDeclaredFields" : true,
"allPublicFields" : true
}
]
File renamed without changes.

0 comments on commit 69f31b1

Please sign in to comment.