netbeans-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From matthiasblaesing <...@git.apache.org>
Subject [GitHub] incubator-netbeans pull request #97: Add support for specifying classifier a...
Date Sun, 08 Oct 2017 12:12:48 GMT
GitHub user matthiasblaesing opened a pull request:

    https://github.com/apache/incubator-netbeans/pull/97

    Add support for specifying classifier and extension for maven binaries

    Some modules not only load plain artifacts from maven, but also need
    additional parts. In maven the primary artifact can be accompanied by
    additional files, that have the same base name, but are seperated by
    a classifier (javadoc and sources for example).
    
    What is more it is possible to publish artifacts with different
    extensions than "jar".
    
    This commit introduces support for this. The format for maven
    coordinates is expanded from:
    
    group:artifact:version
    
    to
    
    group:artifact:version:classifier@extension
    
    Both classifier and extension are optional and the default for extension
    is "jar", so this change is compatible.
    
    The format follows the short version of gradle dependencies:
    
    https://docs.gradle.org/4.2.1/dsl/org.gradle.api.artifacts.dsl.DependencyHandler.html
    
    Section "External dependencies"
    
    -------------
    
    A sample where this is needed can be found in the libs.jaxb module:
    https://github.com/apache/incubator-netbeans/blob/master/libs.jaxb/external/binaries-list
    
    jaxb-api-doc.zip would then replaced by javax.xml.bind:jaxb-api:2.2.5:javadoc

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

    $ git pull https://github.com/matthiasblaesing/incubator-netbeans maven_classifier_extension

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

    https://github.com/apache/incubator-netbeans/pull/97.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 #97
    
----
commit 5c773910524b785e35c5b45d73c5ac42534669d3
Author: Matthias Bläsing <mblaesing@doppel-helix.eu>
Date:   2017-10-08T12:07:24Z

    Add support for specifying classifier and extension for maven binaries
    
    Some modules not only load plain artifacts from maven, but also need
    additional parts. In maven the primary artifact can be accompanied by
    additional files, that have the same base name, but are seperated by
    a classifier (javadoc and sources for example).
    
    What is more it is possible to publish artifacts with different
    extensions than "jar".
    
    This commit introduces support for this. The format for maven
    coordinates is expanded from:
    
    group:artifact:version
    
    to
    
    group:artifact:version:classifier@extension
    
    Both classifier and extension are optional and the default for extension
    is "jar", so this change is compatible.
    
    The format follows the short version of gradle dependencies:
    
    https://docs.gradle.org/4.2.1/dsl/org.gradle.api.artifacts.dsl.DependencyHandler.html
    
    Section "External dependencies"

----


---

Mime
View raw message