Skip to content

Commit 2fec8b3

Browse files
committed
maven should compile as Java source version 1.5 so that we do not introduce @OverRide annotations that would break 1.5 clients
1 parent 3501832 commit 2fec8b3

File tree

1 file changed

+32
-23
lines changed

1 file changed

+32
-23
lines changed

pom.xml

Lines changed: 32 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -62,59 +62,68 @@ application while protecting against XSS.
6262
<build>
6363
<plugins>
6464
<plugin>
65-
<groupId>org.sonatype.plugins</groupId>
66-
<artifactId>nexus-staging-maven-plugin</artifactId>
67-
<version>1.6.3</version>
68-
<extensions>true</extensions>
69-
<configuration>
65+
<groupId>org.apache.maven.plugins</groupId>
66+
<artifactId>maven-compiler-plugin</artifactId>
67+
<version>3.3</version>
68+
<configuration>
69+
<source>1.5</source>
70+
<target>1.5</target>
71+
</configuration>
72+
</plugin>
73+
<plugin>
74+
<groupId>org.sonatype.plugins</groupId>
75+
<artifactId>nexus-staging-maven-plugin</artifactId>
76+
<version>1.6.3</version>
77+
<extensions>true</extensions>
78+
<configuration>
7079
<serverId>ossrh</serverId>
7180
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
7281
<autoReleaseAfterClose>true</autoReleaseAfterClose>
73-
</configuration>
82+
</configuration>
7483
</plugin>
7584
<!-- For building the source jar. -->
7685
<plugin>
77-
<groupId>org.apache.maven.plugins</groupId>
78-
<artifactId>maven-source-plugin</artifactId>
79-
<version>2.2.1</version>
80-
<executions>
86+
<groupId>org.apache.maven.plugins</groupId>
87+
<artifactId>maven-source-plugin</artifactId>
88+
<version>2.2.1</version>
89+
<executions>
8190
<execution>
8291
<id>attach-sources</id>
8392
<goals>
8493
<goal>jar-no-fork</goal>
8594
</goals>
8695
</execution>
87-
</executions>
96+
</executions>
8897
</plugin>
8998
<!-- For building the javadoc jar. -->
9099
<plugin>
91-
<groupId>org.apache.maven.plugins</groupId>
92-
<artifactId>maven-javadoc-plugin</artifactId>
93-
<version>2.9.1</version>
94-
<executions>
100+
<groupId>org.apache.maven.plugins</groupId>
101+
<artifactId>maven-javadoc-plugin</artifactId>
102+
<version>2.9.1</version>
103+
<executions>
95104
<execution>
96105
<id>attach-javadocs</id>
97106
<goals>
98107
<goal>jar</goal>
99108
</goals>
100109
</execution>
101-
</executions>
110+
</executions>
102111
</plugin>
103112
<!-- Sign all the components sent to ossrh
104113
The credentials are pulled from ~/.m2/settings.xml -->
105114
<plugin>
106-
<groupId>org.apache.maven.plugins</groupId>
107-
<artifactId>maven-gpg-plugin</artifactId>
108-
<version>1.5</version>
109-
<executions>
115+
<groupId>org.apache.maven.plugins</groupId>
116+
<artifactId>maven-gpg-plugin</artifactId>
117+
<version>1.5</version>
118+
<executions>
110119
<execution>
111120
<id>sign-artifacts</id>
112121
<phase>verify</phase>
113122
<goals>
114123
<goal>sign</goal>
115124
</goals>
116125
</execution>
117-
</executions>
126+
</executions>
118127
</plugin>
119128
</plugins>
120129
</build>
@@ -139,12 +148,12 @@ application while protecting against XSS.
139148
<dependencies>
140149
<dependency>
141150
<!--
142-
http://repo2.maven.org/maven2/com/google/guava/guava/
151+
http://repo2.maven.org/maven2/com/google/guava/guava/
143152
-->
144153
<groupId>com.google.guava</groupId>
145154
<artifactId>guava</artifactId>
146155
<!--
147-
We depend on 11 because it is the last which works with JDK 5
156+
We depend on 11 because it is the last which works with JDK 5
148157
which we want to link against.
149158
-->
150159
<version>[11.0,)</version>

0 commit comments

Comments
 (0)