| <?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 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <groupId>com.google.gerrit.operator</groupId> |
| <artifactId>operator</artifactId> |
| <version>0.1-SNAPSHOT</version> |
| |
| <name>Gerrit Kubernetes Operator</name> |
| <description>Provisions and operates Gerrit instances in Kubernetes</description> |
| <packaging>jar</packaging> |
| |
| <properties> |
| <fabric8.version>6.2.0</fabric8.version> |
| <flogger.version>0.7.4</flogger.version> |
| <javaoperatorsdk.version>4.1.0</javaoperatorsdk.version> |
| <maven.compiler.source>11</maven.compiler.source> |
| <maven.compiler.target>11</maven.compiler.target> |
| </properties> |
| |
| <dependencies> |
| <dependency> |
| <groupId>io.javaoperatorsdk</groupId> |
| <artifactId>operator-framework</artifactId> |
| <version>${javaoperatorsdk.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>io.javaoperatorsdk</groupId> |
| <artifactId>micrometer-support</artifactId> |
| <version>${javaoperatorsdk.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>io.javaoperatorsdk</groupId> |
| <artifactId>operator-framework-junit-5</artifactId> |
| <version>${javaoperatorsdk.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>io.fabric8</groupId> |
| <artifactId>kubernetes-client</artifactId> |
| <version>${fabric8.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>io.fabric8</groupId> |
| <artifactId>crd-generator-apt</artifactId> |
| <version>${fabric8.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.takes</groupId> |
| <artifactId>takes</artifactId> |
| <version>1.19</version> |
| </dependency> |
| <dependency> |
| <groupId>com.google.flogger</groupId> |
| <artifactId>flogger</artifactId> |
| <version>${flogger.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>com.google.flogger</groupId> |
| <artifactId>flogger-log4j2-backend</artifactId> |
| <version>${flogger.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.logging.log4j</groupId> |
| <artifactId>log4j-slf4j-impl</artifactId> |
| <version>2.19.0</version> |
| </dependency> |
| <dependency> |
| <groupId>com.urswolfer.gerrit.client.rest</groupId> |
| <artifactId>gerrit-rest-java-client</artifactId> |
| <version>0.9.5</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.mockito</groupId> |
| <artifactId>mockito-core</artifactId> |
| <version>4.8.0</version> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>com.spotify.fmt</groupId> |
| <artifactId>fmt-maven-plugin</artifactId> |
| <version>2.19</version> |
| <executions> |
| <execution> |
| <goals> |
| <goal>format</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-jar-plugin</artifactId> |
| <version>3.2.2</version> |
| <configuration> |
| <archive> |
| <manifest> |
| <mainClass>com.google.gerrit.k8s.operator.GerritOperator</mainClass> |
| <addDefaultImplementationEntries> |
| true |
| </addDefaultImplementationEntries> |
| </manifest> |
| </archive> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>com.google.cloud.tools</groupId> |
| <artifactId>jib-maven-plugin</artifactId> |
| <version>3.2.0</version> |
| <configuration> |
| <container> |
| <mainClass>com.google.gerrit.k8s.operator.GerritOperator</mainClass> |
| </container> |
| <containerizingMode>packaged</containerizingMode> |
| <from> |
| <image>gcr.io/distroless/java:11</image> |
| </from> |
| <to> |
| <image>gerrit-operator</image> |
| </to> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <version>3.10.0</version> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <version>2.22.2</version> |
| <configuration> |
| <includes> |
| <include>**/*E2E.java</include> |
| <include>**/*Test.java</include> |
| </includes> |
| <rerunFailingTestsCount>1</rerunFailingTestsCount> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </project> |