rlalfo / google-http-java-client

Automatically exported from code.google.com/p/google-http-java-client
0 stars 0 forks source link

Java 5 compatibility checks #232

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Use the Animal Sniffer plugin to ensure we write code that is compatible with 
Java 5:

http://mojo.codehaus.org/animal-sniffer-maven-plugin/

Use the Enforce Bytecode Version Plugin to ensure our dependencies are 
compatible with Java 5:

http://mojo.codehaus.org/extra-enforcer-rules/enforceBytecodeVersion.html

Original issue reported on code.google.com by yan...@google.com on 24 Jun 2013 at 7:11

GoogleCodeExporter commented 9 years ago
https://codereview.appspot.com/10679049/

Original comment by ngmic...@google.com on 1 Jul 2013 at 8:06

GoogleCodeExporter commented 9 years ago
We added the Animal Sniffer plugin but not the Enforcer plugin. The Enforcer 
plugin crashes with a NullPointerException. This seems to be because we specify 
version numbers in <dependencyManagement> instead of directly on the 
dependencies. 

The following thread appears to be the issue we're facing as well: 
http://stackoverflow.com/questions/1017019/maven-assembly-plugin-fails-with-null
pointerexception 
Particularly the comment on the answer:
http://stackoverflow.com/questions/1017019/maven-assembly-plugin-fails-with-null
pointerexception#comment826448_1017037

This will be tracked in a new issue: 
https://code.google.com/p/google-http-java-client/issues/detail?id=234

Original comment by ngmic...@google.com on 2 Jul 2013 at 4:12