All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.maven.io.prometheus.prometheus-metrics-shaded-protobuf.pom.xml Maven / Gradle / Ivy

There is a newer version: 1.0.1
Show newest version
<?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>

    <parent>
        <groupId>io.prometheus</groupId>
        <artifactId>prometheus-metrics-shaded-dependencies</artifactId>
        <version>1.3.0</version>
    </parent>

    <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>


    <properties>
        <!-- Must be the same as the version of the protoc command that generated Metrics.java -->
        <!-- in the Prometheus protobuf exposition format. -->
        <protobuf.version>3.25.3</protobuf.version>
        <!-- The version string is part of the relocated package name to make it safe to update in the future. -->
        <protobuf.version.string>3_25_3</protobuf.version.string>
    </properties>

    <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>

    <developers>
        <developer>
            <id>fstab</id>
            <name>Fabian Stäber</name>
            <email>[email protected]</email>
        </developer>
    </developers>

    <dependencies>
        <dependency>
            <groupId>com.google.protobuf</groupId>
            <artifactId>protobuf-java</artifactId>
            <version>${protobuf.version}</version>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <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 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer" />
                            </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>
</project>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy