mirror of
https://github.com/floci-io/floci-cli.git
synced 2026-11-23 14:10:50 -05:00
193 lines
8.1 KiB
XML
193 lines
8.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<groupId>io.floci</groupId>
|
|
<artifactId>floci-cli</artifactId>
|
|
<version>1.0.0</version>
|
|
<packaging>jar</packaging>
|
|
|
|
<name>Floci CLI</name>
|
|
<description>Official command-line interface for Floci — the free, open-source local AWS emulator</description>
|
|
<url>https://github.com/floci-io/floci-cli</url>
|
|
|
|
<licenses>
|
|
<license>
|
|
<name>MIT License</name>
|
|
<url>https://opensource.org/licenses/MIT</url>
|
|
</license>
|
|
</licenses>
|
|
|
|
<properties>
|
|
<maven.compiler.release>25</maven.compiler.release>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<picocli.version>4.7.6</picocli.version>
|
|
<jackson.version>2.18.3</jackson.version>
|
|
<junit.version>5.11.4</junit.version>
|
|
<main.class>io.floci.cli.FlociCli</main.class>
|
|
<floci.test.groups/>
|
|
<floci.test.excludedGroups>integration</floci.test.excludedGroups>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<!-- Picocli CLI framework — annotation-driven, native-image friendly -->
|
|
<dependency>
|
|
<groupId>info.picocli</groupId>
|
|
<artifactId>picocli</artifactId>
|
|
<version>${picocli.version}</version>
|
|
</dependency>
|
|
|
|
<!-- Jackson for JSON and YAML output rendering -->
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
<artifactId>jackson-databind</artifactId>
|
|
<version>${jackson.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.dataformat</groupId>
|
|
<artifactId>jackson-dataformat-yaml</artifactId>
|
|
<version>${jackson.version}</version>
|
|
</dependency>
|
|
<!-- Already on the classpath through jackson-dataformat-yaml, which is built on it; declared
|
|
because config validate uses it directly to resolve anchors and merge keys. Keep the
|
|
version the one Jackson's YAML module brings in. -->
|
|
<dependency>
|
|
<groupId>org.yaml</groupId>
|
|
<artifactId>snakeyaml</artifactId>
|
|
<version>2.3</version>
|
|
</dependency>
|
|
|
|
<!-- Testing -->
|
|
<dependency>
|
|
<groupId>org.junit.jupiter</groupId>
|
|
<artifactId>junit-jupiter</artifactId>
|
|
<version>${junit.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.junit.jupiter</groupId>
|
|
<artifactId>junit-jupiter-params</artifactId>
|
|
<version>${junit.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<resources>
|
|
<resource>
|
|
<directory>src/main/resources</directory>
|
|
<filtering>true</filtering>
|
|
</resource>
|
|
</resources>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<version>3.15.0</version>
|
|
<configuration>
|
|
<release>${maven.compiler.release}</release>
|
|
<!-- picocli-codegen generates reflect-config.json for all @Command classes -->
|
|
<annotationProcessorPaths>
|
|
<path>
|
|
<groupId>info.picocli</groupId>
|
|
<artifactId>picocli-codegen</artifactId>
|
|
<version>${picocli.version}</version>
|
|
</path>
|
|
</annotationProcessorPaths>
|
|
<compilerArgs>
|
|
<arg>-Aproject=${project.groupId}/${project.artifactId}</arg>
|
|
</compilerArgs>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<version>3.5.5</version>
|
|
<configuration>
|
|
<!-- Tests tagged "integration" need Docker and the emulator images; they run
|
|
only with -Pintegration. -->
|
|
<groups>${floci.test.groups}</groups>
|
|
<excludedGroups>${floci.test.excludedGroups}</excludedGroups>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<!-- Fat JAR — JVM fallback when native binary is unavailable -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-shade-plugin</artifactId>
|
|
<version>3.6.0</version>
|
|
<executions>
|
|
<execution>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>shade</goal>
|
|
</goals>
|
|
<configuration>
|
|
<createDependencyReducedPom>false</createDependencyReducedPom>
|
|
<transformers>
|
|
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
|
|
<mainClass>${main.class}</mainClass>
|
|
</transformer>
|
|
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
|
|
</transformers>
|
|
<finalName>floci</finalName>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
<profiles>
|
|
<profile>
|
|
<id>integration</id>
|
|
<properties>
|
|
<floci.test.groups>integration</floci.test.groups>
|
|
<floci.test.excludedGroups>none</floci.test.excludedGroups>
|
|
</properties>
|
|
</profile>
|
|
<profile>
|
|
<id>native</id>
|
|
<activation>
|
|
<property>
|
|
<name>native</name>
|
|
</property>
|
|
</activation>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.graalvm.buildtools</groupId>
|
|
<artifactId>native-maven-plugin</artifactId>
|
|
<version>0.10.4</version>
|
|
<extensions>true</extensions>
|
|
<executions>
|
|
<execution>
|
|
<id>build-native</id>
|
|
<goals>
|
|
<goal>compile-no-fork</goal>
|
|
</goals>
|
|
<phase>package</phase>
|
|
</execution>
|
|
</executions>
|
|
<configuration>
|
|
<imageName>floci</imageName>
|
|
<mainClass>${main.class}</mainClass>
|
|
<buildArgs>
|
|
<buildArg>--enable-url-protocols=http,https</buildArg>
|
|
<buildArg>--no-fallback</buildArg>
|
|
<buildArg>-H:+ReportExceptionStackTraces</buildArg>
|
|
<buildArg>-H:IncludeResources=.*\.properties</buildArg>
|
|
<!-- Optimize for size, measured 2026-10-08: GraalVM Community linux/arm64 49.2 to 40.8 MB
|
|
(about 17%); Oracle GraalVM about 35% (darwin-arm64 51.8 to 33.6 MB) for
|
|
~10 ms more startup (~33 to ~43 ms). -->
|
|
<buildArg>-Os</buildArg>
|
|
</buildArgs>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
</profiles>
|
|
</project>
|