commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benedikt Ritter <benerit...@gmail.com>
Subject Re: [All] Animal sniffer (was: [math] Arrays.copyOf is Java 1.6+)
Date Thu, 08 Jan 2015 17:29:22 GMT


Send from my mobile device

> Am 08.01.2015 um 17:38 schrieb Thomas Neidhart <thomas.neidhart@gmail.com>:
> 
>> On 01/08/2015 05:24 PM, sebb wrote:
>>> On 8 January 2015 at 16:13, Thomas Neidhart <thomas.neidhart@gmail.com>
wrote:
>>>> On 01/08/2015 04:44 PM, sebb wrote:
>>>>> On 8 January 2015 at 11:45, Thomas Neidhart <thomas.neidhart@gmail.com>
wrote:
>>>>> On 01/08/2015 12:25 PM, sebb wrote:
>>>>> We certainly need to add animal-sniffer to our release building process
>>>>> to detect such things.
>>>> 
>>>> Does that actually detect such things?
>>> 
>>> yes, that's the intention of this tool, and there is even a maven plugin:
>>> 
>>> http://mojo.codehaus.org/animal-sniffer-maven-plugin/index.html
>> 
>> This suggests one has to create the API signature first.
>> Which means one has to have access to the appropriate JDK anyway.
>> 
>> But I now see that some sigs are already provided.
> 
> here is an example of the usage:
> 
>      <plugin>
>        <groupId>org.codehaus.mojo</groupId>
>        <artifactId>animal-sniffer-maven-plugin</artifactId>
>        <version>1.13</version>
>        ...
>        <configuration>
>          ...
>          <signature>
>            <groupId>org.codehaus.mojo.signature</groupId>
>            <artifactId>java15</artifactId>
>            <version>1.0</version>
>          </signature>
>          ...
>        </configuration>
>        ...
>      </plugin>
> 
> signatures for the various jdk versions are already available. We could
> add different profiles to the parent depending on the
> maven.compiler.source property.
> 

Very nice!

> Thomas
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message