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

Ewen Cheslack-Postava commented on KAFKA-1876:
----------------------------------------------

Based on the output of {{./gradlew -PscalaVersion=2.11 core:dependencies}}, it 
looks like this happens to work because the scala dependencies end up being 
pulled in by scala-xml_2.11/scala-parser-combinators_2.11. Specifying an exact 
version gets the right behavior instead of defaulting to 2.11.1, which is what 
pulling it in transitively does.

The patch looks fine for making releaseTarGzAll and uploadArchives use the 
2.11.5 instead of using whatever version the other dependencies happen to pull 
in. We might also want validation of the scala version in scala.gradle. With 
this patch, I can still run {{./gradlew -PscalaVersion=2.11 jar}} and end up 
with the same behavior where the specific scala version is chosen implicitly 
via transitive dependencies.

> pom file for scala 2.11 should reference a specific version
> -----------------------------------------------------------
>
>                 Key: KAFKA-1876
>                 URL: https://issues.apache.org/jira/browse/KAFKA-1876
>             Project: Kafka
>          Issue Type: Bug
>    Affects Versions: 0.8.2
>            Reporter: Jun Rao
>            Assignee: Jun Rao
>            Priority: Blocker
>             Fix For: 0.8.2
>
>         Attachments: kafka-1876.patch
>
>
> Currently, the pom file specifies the following scala dependency for 2.11.
>     <dependency>
>       <groupId>org.scala-lang</groupId>
>       <artifactId>scala-library</artifactId>
>       <version>2.11</version>
>       <scope>compile</scope>
>     </dependency>
> However, there is no 2.11 in maven central (there are only 2.11.1, 2.11.2, 
> etc).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to