简体   繁体   中英

Akka Java API artifactId versioning?

I am curious about Akka's Java API versioning conventions, and I can find nothing in their docs.

If you got to Maven repo and search for available akka-actor versions, you'll find entries like:

  • 'com.typesafe.akka:akka-actor_2.10:2.3.15' or
  • 'com.typesafe.akka:akka-actor_2.11:2.4.4'

Question : what is the significance of the 2.10 vs 2.11 qualifiers suffixing the artifactId ?

In this case the artifactId is encoding the Scala version distribution (2.10, 2.11) as also stated in this old Google Groups discussion

we adopted the sbt standard of encoding the Scala binary version in the artifact name, ie the core actor package's artifactId is “akka-actor_2.10” and “akka-actor_2.11”.

The post is from Martynas Mickevicius , part of the akka team .

The same is also mentioned in their official website as part of the Release notes of the version 2.3.2

Additional Release Details
The artifacts comprising this release have been published to https://oss.sonatype.org/content/repositories/releases/ and also to Maven Central. In addition, we adopted the sbt standard of encoding the Scala binary version in the artifact name, ie the core actor package's artifactId is “akka-actor_2.10”.

This is also clear when looking at its releases history .

2.1.0 Dec 22, 2012 part of Scala 2.10.x distribution > Mavdn dependency com.typesafe.akka:akka-actor_2.10:2.1.0

2.3.2 Apr 9, 2014 part of Scala 2.11.0 distribution > Maven dependency com.typesafe.akka:akka-actor_2.11:2.3.2

Hence, for each akka-scala compatible version, then a further versioning is applied via the standard version element of the concerned dependency.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM