Closed krismcqueen closed 8 years ago
+1, we need this as well in the Apache Sling project ( see SLING-4702 ).
+1 we have a similar requirement as well.
+1
+1, we have disabled animal-sniffer on our Java 8 projects, and would love to have it back.
+1
+42
+1
Can't we generate one on your own using instructions on http://www.mojohaus.org/animal-sniffer/animal-sniffer-maven-plugin/examples/generating-java-signatures.html
Of course it won't be available in maven central but for those how have internal repo in your organization that can a good interim solution.
+1
+1
+1
It has just been released.
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>animal-sniffer-maven-plugin</artifactId>
<configuration>
<signature>
<groupId>org.codehaus.mojo.signature</groupId>
<artifactId>java18</artifactId>
<version>1.0</version>
</signature>
</configuration>
</plugin>
Is it still on its way to Maven Central? Still the last one listed is 1.14. Thanks!
@nobeh, 1.14 is the version of animal-sniffer-maven-plugin, while this thread is about the signature for Java 8.
Right, indeed, I mixed the two for a moment.
Related question: How will the signatures for Java 11 etc. be named? In future there will need to be a hyphen or something inserted, to disambiguate java17
for Java 1.7 from say java-17
for Java 17.
@lukehutch I think this project is dead now :) starting with java 9 you can simply use the option --release
and that's it :)
read http://openjdk.java.net/jeps/247
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<configuration>
<release>9</release>
</configuration>
</plugin>
@olamy: ah, I wondered why there hadn't been any updates. Makes a lot of sense. Thanks for the explanation!
My project is in the process of setting the baseline Java version to 1.8. We use the animal-sniffer plugin to ensure API compatibility and I was not able to find a java18 org.codehaus.mojo.signature artifact on maven central. I had a couple of questions:
Thanks. Very useful plugin.