Using Gradle "Notation Artifact Only" with a custom artifact name

I want to use only Artifact notation to load one artifact whose file name is completely different from the module name. My Ivy artifact drawing is configured as:

ivy {
    artifactPattern 'http://host/[organization]/[module]/[revision]/[artifact]-[revision].[ext]'
}

However, as a rule, only the designation "Artifact" supports only:

  • group(displayed on [organization])
  • name(displayed on [module])
  • version(displayed on [revision])
  • ext(displayed on [exp]) and
  • classifier(displayed in [classifier], not used here).

Part of the URL [artifact]seems to always be replaced by name.

Gradle, [artifact] URL? Ivy XML , name, dependency.

, , ivy.xml , , classifier .

+4
1

, , , . [artifact] URL- - [module], :

compile ('group-or-org-name:module-name:module-version') {
    artifact {
        name = 'artifact-name-different-from-module-name'
        type = 'type-must-not-be-null'
    }
}

: .

+4

All Articles