emran396 / google-api-java-client

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

Java 5 compatibility checks #808

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

The java6 package should obviously enforce Java 6 compatibility. App Engine 
also requires at least Java 6.

Original issue reported on code.google.com by ngmic...@google.com on 1 Jul 2013 at 8:21

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

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

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-api-java-client/issues/detail?id=810

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