Quantcast

artifact display name

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

artifact display name

Szczepan Faber
Hey,

The current naming notation for artifact display name results in names like:

kafka:kafka_2.10:0.8.1.162:kafka_2.10.jar

This naming convention does not work well with classifier-artifacts,
for example:

kafka:kafka_2.10:0.8.1.162:kafka_2.10-test.jar

Real use case is I've seen an error like:

   > Could not download artifact
'kafka:kafka_2.10:0.8.1.162:kafka_2.10-test.jar'
      > Artifact 'kafka:kafka_2.10:0.8.1.162:kafka_2.10-test.jar' not found.

First thing that I concluded (and other users, too) is that Gradle has
corrupted the classifier from 'test' into 'kafka_2.10-test'. Only
after I've looked into the codebase and found out how the display name
is assembled I figured out what's wrong.

I suggest that we change the display name convention for artifacts, instead of:

kafka:kafka_2.10:0.8.1.162:kafka_2.10-test.jar

We do something like:
kafka_2.10-test.jar (kafka:kafka_2.10:0.8.1.162)
kafka_2.10-test.jar of kafka:kafka_2.10:0.8.1.162
kafka_2.10-test.jar[kafka:kafka_2.10:0.8.1.162]
kafka:kafka_2.10:0.8.1.162->kafka_2.10-test.jar
Or something else that does not use ':' to separate gav from the
artifact name. Also, it feels like the file name should be in front of
the notation for display name of the _artifact_.

Thoughts?
--
Szczepan Faber
Core dev@gradle; Founder@mockito

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: artifact display name

Daz DeBoer-2
+1 to changing this. I've had forum issues related to the same misdiagnosis based on the artifact display name.

My preference is:
kafka_2.10-test.jar (kafka:kafka_2.10:0.8.1.162) or the same with square brackets.

A simpler example:
junit.jar (junit:junit:4.5)



On Thu, Jul 31, 2014 at 2:56 AM, Szczepan Faber <[hidden email]> wrote:
Hey,

The current naming notation for artifact display name results in names like:

kafka:kafka_2.10:0.8.1.162:kafka_2.10.jar

This naming convention does not work well with classifier-artifacts,
for example:

kafka:kafka_2.10:0.8.1.162:kafka_2.10-test.jar

Real use case is I've seen an error like:

   > Could not download artifact
'kafka:kafka_2.10:0.8.1.162:kafka_2.10-test.jar'
      > Artifact 'kafka:kafka_2.10:0.8.1.162:kafka_2.10-test.jar' not found.

First thing that I concluded (and other users, too) is that Gradle has
corrupted the classifier from 'test' into 'kafka_2.10-test'. Only
after I've looked into the codebase and found out how the display name
is assembled I figured out what's wrong.

I suggest that we change the display name convention for artifacts, instead of:

kafka:kafka_2.10:0.8.1.162:kafka_2.10-test.jar

We do something like:
kafka_2.10-test.jar (kafka:kafka_2.10:0.8.1.162)
kafka_2.10-test.jar of kafka:kafka_2.10:0.8.1.162
kafka_2.10-test.jar[kafka:kafka_2.10:0.8.1.162]
kafka:kafka_2.10:0.8.1.162->kafka_2.10-test.jar
Or something else that does not use ':' to separate gav from the
artifact name. Also, it feels like the file name should be in front of
the notation for display name of the _artifact_.

Thoughts?
--
Szczepan Faber
Core dev@gradle; Founder@mockito

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email





--
Darrell (Daz) DeBoer
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: artifact display name

Szczepan Faber
Thanks for feedback. I'll try to get this implemented sometime soon.

I'll go ahead with "junit.jar (junit:junit:4.5)" display name style.

Cheers!

On Thu, Jul 31, 2014 at 5:22 PM, Daz DeBoer
<[hidden email]> wrote:

> +1 to changing this. I've had forum issues related to the same misdiagnosis
> based on the artifact display name.
>
> My preference is:
> kafka_2.10-test.jar (kafka:kafka_2.10:0.8.1.162) or the same with square
> brackets.
>
> A simpler example:
> junit.jar (junit:junit:4.5)
>
>
>
> On Thu, Jul 31, 2014 at 2:56 AM, Szczepan Faber <[hidden email]> wrote:
>>
>> Hey,
>>
>> The current naming notation for artifact display name results in names
>> like:
>>
>> kafka:kafka_2.10:0.8.1.162:kafka_2.10.jar
>>
>> This naming convention does not work well with classifier-artifacts,
>> for example:
>>
>> kafka:kafka_2.10:0.8.1.162:kafka_2.10-test.jar
>>
>> Real use case is I've seen an error like:
>>
>>    > Could not download artifact
>> 'kafka:kafka_2.10:0.8.1.162:kafka_2.10-test.jar'
>>       > Artifact 'kafka:kafka_2.10:0.8.1.162:kafka_2.10-test.jar' not
>> found.
>>
>> First thing that I concluded (and other users, too) is that Gradle has
>> corrupted the classifier from 'test' into 'kafka_2.10-test'. Only
>> after I've looked into the codebase and found out how the display name
>> is assembled I figured out what's wrong.
>>
>> I suggest that we change the display name convention for artifacts,
>> instead of:
>>
>> kafka:kafka_2.10:0.8.1.162:kafka_2.10-test.jar
>>
>> We do something like:
>> kafka_2.10-test.jar (kafka:kafka_2.10:0.8.1.162)
>> kafka_2.10-test.jar of kafka:kafka_2.10:0.8.1.162
>> kafka_2.10-test.jar[kafka:kafka_2.10:0.8.1.162]
>> kafka:kafka_2.10:0.8.1.162->kafka_2.10-test.jar
>> Or something else that does not use ':' to separate gav from the
>> artifact name. Also, it feels like the file name should be in front of
>> the notation for display name of the _artifact_.
>>
>> Thoughts?
>> --
>> Szczepan Faber
>> Core dev@gradle; Founder@mockito
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>>     http://xircles.codehaus.org/manage_email
>>
>>
>
>
>
> --
> Darrell (Daz) DeBoer
> http://www.gradleware.com



--
Szczepan Faber
Core dev@gradle; Founder@mockito

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Loading...