Skip to content

Commit 7ee7a98

Browse files
authored
Merge pull request #5 from jianglai/pom-plugin-fix
Add additional build configuration
2 parents 7541320 + 7357dfe commit 7ee7a98

File tree

2 files changed

+109
-34
lines changed

2 files changed

+109
-34
lines changed

pom.xml

Lines changed: 109 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,53 @@
1414
<description>
1515
Java idiomatic client for metrics monitoring, with Stackdriver backend as an example.
1616
</description>
17+
<url>https://github.com/google/java-monitoring-client-library</url>
1718

1819
<properties>
1920
<maven.compiler.source>1.8</maven.compiler.source>
2021
<maven.compiler.target>1.8</maven.compiler.target>
2122
</properties>
2223

24+
<licenses>
25+
<license>
26+
<name>The Apache Software License, Version 2.0</name>
27+
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
28+
</license>
29+
</licenses>
30+
31+
<developers>
32+
<developer>
33+
<name>Greg Shikhman</name>
34+
<email>shikhman@google.com</email>
35+
<organization>Google</organization>
36+
<organizationUrl>http://google.com</organizationUrl>
37+
</developer>
38+
<developer>
39+
<name>Lai Jiang</name>
40+
<email>jianglai@google.com</email>
41+
<organization>Google</organization>
42+
<organizationUrl>http://google.com</organizationUrl>
43+
</developer>
44+
</developers>
45+
46+
<scm>
47+
<connection>scm:git:https://github.com/google/java-monitoring-client-library.git</connection>
48+
<developerConnection>scm:git:git@github.com:google/java-monitoring-client-library.git
49+
</developerConnection>
50+
<url>https://github.com/google/java-monitoring-client-library</url>
51+
</scm>
52+
53+
<distributionManagement>
54+
<snapshotRepository>
55+
<id>sonatype-nexus-staging</id>
56+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
57+
</snapshotRepository>
58+
<repository>
59+
<id>sonatype-nexus-staging</id>
60+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
61+
</repository>
62+
</distributionManagement>
63+
2364
<modules>
2465
<module>metrics</module>
2566
<module>contrib</module>
@@ -28,38 +69,73 @@
2869
</modules>
2970

3071
<build>
31-
<pluginManagement>
32-
<plugins>
33-
<plugin>
34-
<groupId>org.apache.maven.plugins</groupId>
35-
<artifactId>maven-surefire-plugin</artifactId>
36-
<version>2.20.1</version>
37-
</plugin>
38-
<plugin>
39-
<groupId>org.apache.maven.plugins</groupId>
40-
<artifactId>maven-source-plugin</artifactId>
41-
<executions>
42-
<execution>
43-
<id>attach-sources</id>
44-
<goals>
45-
<goal>jar</goal>
46-
</goals>
47-
</execution>
48-
</executions>
49-
</plugin>
50-
<plugin>
51-
<groupId>org.apache.maven.plugins</groupId>
52-
<artifactId>maven-javadoc-plugin</artifactId>
53-
<executions>
54-
<execution>
55-
<id>attach-javadocs</id>
56-
<goals>
57-
<goal>jar</goal>
58-
</goals>
59-
</execution>
60-
</executions>
61-
</plugin>
62-
</plugins>
63-
</pluginManagement>
72+
<plugins>
73+
<plugin>
74+
<groupId>org.apache.maven.plugins</groupId>
75+
<artifactId>maven-surefire-plugin</artifactId>
76+
</plugin>
77+
<plugin>
78+
<groupId>org.apache.maven.plugins</groupId>
79+
<artifactId>maven-source-plugin</artifactId>
80+
<executions>
81+
<execution>
82+
<id>attach-sources</id>
83+
<goals>
84+
<goal>jar-no-fork</goal>
85+
</goals>
86+
</execution>
87+
</executions>
88+
</plugin>
89+
<plugin>
90+
<groupId>org.apache.maven.plugins</groupId>
91+
<artifactId>maven-javadoc-plugin</artifactId>
92+
<configuration>
93+
<additionalOptions>
94+
<additionalOption>-Xdoclint:all,-missing</additionalOption>
95+
</additionalOptions>
96+
</configuration>
97+
<executions>
98+
<execution>
99+
<id>attach-javadocs</id>
100+
<goals>
101+
<goal>jar</goal>
102+
</goals>
103+
</execution>
104+
</executions>
105+
</plugin>
106+
</plugins>
64107
</build>
108+
109+
<profiles>
110+
<profile>
111+
<id>release</id>
112+
<build>
113+
<plugins>
114+
<plugin>
115+
<groupId>org.apache.maven.plugins</groupId>
116+
<artifactId>maven-gpg-plugin</artifactId>
117+
<executions>
118+
<execution>
119+
<id>sign-artifacts</id>
120+
<phase>verify</phase>
121+
<goals>
122+
<goal>sign</goal>
123+
</goals>
124+
</execution>
125+
</executions>
126+
</plugin>
127+
<plugin>
128+
<groupId>org.sonatype.plugins</groupId>
129+
<artifactId>nexus-staging-maven-plugin</artifactId>
130+
<extensions>true</extensions>
131+
<configuration>
132+
<serverId>sonatype-nexus-staging</serverId>
133+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
134+
<autoReleaseAfterClose>false</autoReleaseAfterClose>
135+
</configuration>
136+
</plugin>
137+
</plugins>
138+
</build>
139+
</profile>
140+
</profiles>
65141
</project>

third_party/junit/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,4 @@
2020
<description>
2121
Convenient functions backported from JUnit 4.13.
2222
</description>
23-
2423
</project>

0 commit comments

Comments
 (0)