I have a config like this for the project in my build.sbt:
name := "test-utils_0.1"
organization := "com.my.test.project"
version := "0.6.0-SNAPSHOT"
My problem is - when I run sbt clean publish-local
command, the jar gets published in the .ivy2 local directory as:
test-utils_0-1_2.11
What is the best way to change it to test-utils_0.1_2.11
?
UPDATE I have also tried to modify the artifactName property of build.sbt in this way:
name := "test-utils"
organization := "com.my.test.project"
version := "0.6.0-SNAPSHOT"
utilsVersion := "0.1"
artifactName := { (sv: ScalaVersion, module: ModuleID, artifact: Artifact) =>
artifact.name + "_" + utilsVersion + "_" + sv.binary + "-" + module.revision + "." + artifact.extension
}
And I get the jar called test-utils_0.1_2.11.jar
, but this does NOT change the publish name in my repo (it is still being published using the name
property, ie. test-utils_2.11/0.6.0-SNAPSHOT/test-utils_2.11.jar
)