You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tamaya.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/04/30 12:35:00 UTC

[jira] [Commented] (TAMAYA-331) Add Automatic-Module-Name metadata for use with JDK 9+ module system

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

ASF GitHub Bot commented on TAMAYA-331:
---------------------------------------

GitHub user acoburn opened a pull request:

    https://github.com/apache/incubator-tamaya-sandbox/pull/3

    Add Automatic-Module-Name metadata

    Addresses TAMAYA-331
    
    This adds bundle metadata for use with JDK9+
    For each component, the assigned `Automatic-Module-Name` value is the same as the OSGi exported package.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/acoburn/incubator-tamaya-sandbox TAMAYA-331

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-tamaya-sandbox/pull/3.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #3
    
----

----


> Add Automatic-Module-Name metadata for use with JDK 9+ module system
> --------------------------------------------------------------------
>
>                 Key: TAMAYA-331
>                 URL: https://issues.apache.org/jira/browse/TAMAYA-331
>             Project: Tamaya
>          Issue Type: Improvement
>          Components: API, Core, Extensions
>            Reporter: Aaron Coburn
>            Priority: Major
>             Fix For: 0.4-incubating
>
>
> The Java 9 module system (JSR-376) expects each JAR file to declare a module name. When building explicitly for Java 9+, the module.info file is used to define the imported and exported modules for a given JAR, but given that Tamaya targets JDK 1.8, the simplest way to define a module name for the released artifacts is to define an Automatic-Module-Name entry in each JAR's MANIFEST.MF file. Specifically, this would involve adding an appropriate line to the various bnd.bnd files in the code base.
> In general, it seems that the defined module name would be the same as the OSGi exported module name: tamaya-core exports org.apache.tamaya.core via OSGi, so using the same (o.a.t.core) name would make the most sense.
> The tamaya-api module, however, exports two modules: o.a.t and o.a.t.spi. I would suggest that  tamaya-api's module name be: org.apache.tamaya.
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)