You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (JIRA)" <ji...@apache.org> on 2013/02/11 20:05:12 UTC

[jira] [Commented] (SLING-2728) Setup parent POM for Java 6+ development

    [ https://issues.apache.org/jira/browse/SLING-2728?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13575981#comment-13575981 ] 

Carsten Ziegeler commented on SLING-2728:
-----------------------------------------

I've added some changes to our parent pom: we now have a property named sling.java.version which is by default set to "5" and can be changed in any project to "6".
This property defines the configuration of the java compiler plugin, the animal sniffer plugin and sets the Bundle-RequiredExecutionEnvironment manifest entry.

So by default each bundle is still targetting Java 5, but if a bundle requires Java 6 it simply sets the property sling.java.version to 6.
                
> Setup parent POM for Java 6+ development
> ----------------------------------------
>
>                 Key: SLING-2728
>                 URL: https://issues.apache.org/jira/browse/SLING-2728
>             Project: Sling
>          Issue Type: Improvement
>          Components: General
>    Affects Versions: Parent 14
>            Reporter: Carsten Ziegeler
>            Assignee: Carsten Ziegeler
>             Fix For: Parent 15
>
>
> The Sling parent POM should be configured for Java 6 development:
>     default class files for Java 5
>     default Java API compat for Java 5
>     default Bundle-RequiredExecutionEnvironment for Java 5
> Projects should be able to easily switch to Java 6 setting a single property

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira