Skip to content

Commit

Permalink
[SERV-994] Fix release build with workaround (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
ksclarke authored Jan 17, 2024
1 parent a7ef76e commit d8db26b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 50 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
maven_args: >
-Drevision=${{ github.event.release.tag_name }}
-ntp -Dorg.slf4j.simpleLogger.log.net.sourceforge.pmd=error -Ddocker.showLogs=true
-DskipNexusStagingDeployMojo=true -DautoReleaseAfterClose=false -Dgpg.skip=true
-DskipNexusStagingDeployMojo=true -DautoReleaseAfterClose=false -Dgpg.skip=true -DskipTests
-Ddocker.registry.username=${{ secrets.DOCKER_USERNAME }}
-Ddocker.registry.account=${{ secrets.DOCKER_REGISTRY_ACCOUNT}}
-Ddocker.registry.password=${{ secrets.DOCKER_PASSWORD }}
50 changes: 1 addition & 49 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,7 @@
<goal>push</goal>
</goals>
<configuration>
<filter>hauth</filter>
<images>
<image>
<!-- Registry account, if supplied, must end in a slash (e.g. "account/") -->
Expand Down Expand Up @@ -726,17 +727,6 @@
</args>
</configuration>
</execution>
<execution>
<id>snyk-monitor</id>
<goals>
<goal>monitor</goal>
</goals>
<configuration>
<args>
<arg>--org=${env.UCLALIBRARY_SNYK_ORG}</arg>
</args>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
Expand Down Expand Up @@ -773,44 +763,6 @@
</build>
</profile>

<!-- A profile to use to do a native compile using GraalVM's native-image -->
<profile>
<id>native-compile</id>
<build>
<plugins>
<!-- This packages the code so the native-image plugin can access it -->
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>${jar.plugin.version}</version>
</plugin>
<!-- This creates a native binary from the packaged jar and its dependencies -->
<plugin>
<groupId>org.graalvm.nativeimage</groupId>
<artifactId>native-image-maven-plugin</artifactId>
<version>${graalvm.version}</version>
<executions>
<execution>
<goals>
<goal>native-image</goal>
</goals>
</execution>
</executions>
<configuration>
<imageName>${project.artifactId}</imageName>
<mainClass>io.vertx.core.Launcher</mainClass>
<buildArgs>
<buildArg>--static</buildArg>
<buildArg>--libc=musl</buildArg>
<buildArg>-H:+ReportExceptionStackTraces</buildArg>
<buildArg>-H:+PrintClassInitialization</buildArg>
<buildArg>-H:TraceClassInitialization=com.sun.org.apache.xerces.internal.impl.XMLEntityScanner,io.netty.channel.socket.InternetProtocolFamily</buildArg>
</buildArgs>
</configuration>
</plugin>
</plugins>
</build>
</profile>

<profile>
<id>linux-os</id>
<activation>
Expand Down

0 comments on commit d8db26b

Please sign in to comment.