<?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/maven-v4_0_0.xsd">
  <parent>
    <artifactId>prometheus-metrics-shaded-dependencies</artifactId>
    <groupId>io.prometheus</groupId>
    <version>1.2.1</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>prometheus-metrics-shaded-protobuf</artifactId>
  <name>Shaded Protobuf</name>
  <description>Shaded (reolocated to another package) dependencies for the Protobuf library used to create the Prometheus
        Protobuf format</description>
  <developers>
    <developer>
      <id>fstab</id>
      <name>Fabian Stäber</name>
      <email>fabian@fstab.de</email>
    </developer>
  </developers>
  <licenses>
    <license>
      <name>The Apache Software License, Version 2.0</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
      <distribution>repo</distribution>
    </license>
  </licenses>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <shadeSourcesContent>true</shadeSourcesContent>
              <createSourcesJar>true</createSourcesJar>
              <relocations>
                <relocation>
                  <pattern>com.google.protobuf</pattern>
                  <shadedPattern>io.prometheus.metrics.shaded.com_google_protobuf_${protobuf.version.string}</shadedPattern>
                </relocation>
              </relocations>
              <transformers>
                <transformer />
              </transformers>
              <filters>
                <filter>
                  <artifact>*:*</artifact>
                  <excludes>
                    <exclude>META-INF/maven/com.google.protobuf/**</exclude>
                    <exclude>**/*.proto</exclude>
                    <exclude>META-INF/MANIFEST.MF</exclude>
                  </excludes>
                </filter>
              </filters>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <properties>
    <protobuf.version>3.25.3</protobuf.version>
    <protobuf.version.string>3_25_3</protobuf.version.string>
  </properties>
</project>
