Skip to content

Commit

Permalink
Add a POM template which makes sure that Sonatype is happy with the P…
Browse files Browse the repository at this point in the history
…OM (#38)
  • Loading branch information
dinowernli authored Oct 12, 2021
1 parent 48fe0a2 commit ef84fc3
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
1 change: 1 addition & 0 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ load("@rules_jvm_external//:defs.bzl", "java_export")
java_export(
name = "maven_export_lib",
maven_coordinates = "me.dinowernli:java-grpc-prometheus:0.5.0",
pom_template = "//:pom_template.xml",
# Make sure these show up in the dependencies of the resulting POM.
runtime_deps = [
"//src/main/java/me/dinowernli/grpc/prometheus",
Expand Down
43 changes: 43 additions & 0 deletions pom_template.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?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">
<modelVersion>4.0.0</modelVersion>

<groupId>{groupId}</groupId>
<artifactId>{artifactId}</artifactId>
<version>{version}</version>
<packaging>{type}</packaging>

<organization>
<name>me.dinowernli</name>
</organization>
<name>java-grpc-prometheus</name>
<description>Java interceptors which can be used to monitor Grpc services using Prometheus.</description>
<url>https://github.com/grpc-ecosystem/java-grpc-prometheus</url>

<developers>
<developer>
<id>dino</id>
<name>Dino</name>
</developer>
</developers>

<scm>
<connection>scm:git:git://github.com/grpc-ecosystem/java-grpc-prometheus.git</connection>
<developerConnection>scm:git:git://github.com/grpc-ecosystem/java-grpc-prometheus.git</developerConnection>
<url>https://github.com/grpc-ecosystem/java-grpc-prometheus</url>
<tag>HEAD</tag>
</scm>

<licenses>
<license>
<name>Apache 2.0 License</name>
<url>https://github.com/dinowernli/java-grpc-prometheus/blob/master/LICENSE</url>
<distribution>repo</distribution>
</license>
</licenses>

<dependencies>
{dependencies}
</dependencies>

</project>

0 comments on commit ef84fc3

Please sign in to comment.