Skip to content

Commit

Permalink
build(assembly): add profile to build assembly (#380)
Browse files Browse the repository at this point in the history
  • Loading branch information
ebaron authored Apr 17, 2024
1 parent 7cce795 commit 6fb3be3
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
27 changes: 27 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
<quarkus-quinoa.version>2.3.6</quarkus-quinoa.version>
<io.netty.version>4.1.101.Final</io.netty.version>
<org.codehaus.mojo.build.helper.plugin.version>3.5.0</org.codehaus.mojo.build.helper.plugin.version>
<assembly-plugin.version>3.7.1</assembly-plugin.version>

<com.github.spotbugs.version>4.8.4</com.github.spotbugs.version>
<com.github.spotbugs.plugin.version>4.8.4.0</com.github.spotbugs.plugin.version>
Expand Down Expand Up @@ -502,5 +503,31 @@
</dependencies>
</profile>

<profile>
<id>dist</id>
<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>${assembly-plugin.version}</version>
<configuration>
<descriptors>
<descriptor>src/assembly/quarkus-app.xml</descriptor>
</descriptors>
<tarLongFileMode>posix</tarLongFileMode>
</configuration>
<executions>
<execution>
<id>assemble-quarkus-app</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
14 changes: 14 additions & 0 deletions src/assembly/quarkus-app.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.1.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.1.1 http://maven.apache.org/xsd/assembly-2.1.1.xsd">
<id>quarkus-app</id>
<formats>
<format>tar.gz</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<fileSets>
<fileSet>
<directory>${project.build.directory}/quarkus-app</directory>
</fileSet>
</fileSets>
</assembly>

0 comments on commit 6fb3be3

Please sign in to comment.