<@U0EACPP46> and <@U0BDMQTHS> : you can use a clas...
# announcements
a
@natpryce and @mikehearn : you can use a classifier, which is recommended in the Maven and Gradle docs and is one of the samples given for the use of a classifier is the jdk version. It is the 4th part of a maven artifact identifier
groupId:artifactId:packaging:classifier:version
… given both build systems mention that, and it is common in Ivy as well to use classifiers, then there IS a way to do this that is standard.
>> classifier:
The classifier allows to distinguish artifacts that were built from the same POM but differ in their content. It is some optional and arbitrary string that - if present - is appended to the artifact name just after the version number. As a motivation for this element, consider for example a project that offers an artifact targeting JRE 1.5 but at the same time also an artifact that still supports JRE 1.4. The first artifact could be equipped with the classifier jdk15 and the second one with jdk14 such that clients can choose which one to use. Another common use case for classifiers is the need to attach secondary artifacts to the project's main artifact. If you browse the Maven central repository, you will notice that the classifiers sources and javadoc are used to deploy the project source code and API docs along with the packaged class files.