-
Notifications
You must be signed in to change notification settings - Fork 948
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
packaged artifact names changed in 1.0.0-RC3 #3388
Comments
This is 0.13's artifactName https://github.com/sbt/sbt-zero-thirteen/blob/0.13/ivy/src/main/scala/sbt/Artifact.scala#L80-L87: def artifactName(scalaVersion: ScalaVersion, module: ModuleID, artifact: Artifact): String =
{
import artifact._
val classifierStr = classifier match { case None => ""; case Some(c) => "-" + c }
val cross = CrossVersion(module.crossVersion, scalaVersion.full, scalaVersion.binary)
val base = CrossVersion.applyCross(artifact.name, cross)
base + "-" + module.revision + classifierStr + "." + artifact.extension
} |
Thanks @eed3si9n :) I found the responsible lines in native-packager that cause this regression: private def getJarFullFilename(dep: Attributed[File]): String = {
val filename: Option[String] = for {
module <- dep.metadata.get(AttributeKey[ModuleID]("module-id"))
artifact <- dep.metadata.get(AttributeKey[Artifact]("artifact"))
} yield makeJarName(module.organization, module.name, module.revision, artifact.name, artifact.classifier)
filename.getOrElse(dep.data.getName)
} Both |
Turns out that the |
* Cross build with sbt 1.0 * Fix travis.yml * Fix Build.scala scripted tests * Remove 'provided' scope for jdeb temporarily * Fix dependencies for scripted tests * Fix scripted test calls by using packageBin instead of package-bin * Fix multiproject-classifiers test by using new `withClassifier` method. This may break 0.13.6 -> add compat for this * Replace all *** PathFilter calls in scripted tests * Replace Process with sys.process.Process and add Compat.io import * Fixing all remaining scripted tests * Fix jdk-packager script tests * Fix travis osx oraclejdk8 issue: travis-ci/travis-ci/issues/2316 * Reduce travis ci test matrix * Update out-dated akka dependency in scripted test * Replace akka with typesafe config as a dependency test We need a stable library for scala 2.10 and 2.12. A java lib is more suitable here. * Fix wrong task names * Replace akka with typesafe config as a dependency test We need a stable library for scala 2.10 and 2.12. A java lib is more suitable here. * Polyfill new method `withClassifier` on sbt.Artifact * Remove jdk definition * List every test setup explicitly for travis * Also set env for the osx build * Only use java8 for testing and output scripted buffer * Another approach for travis * Fix rpm scripted tests * Rebase and fix newly added test * Fix debian scripted tests * Run only the script docker tests which don't require docker * Fix validateJdkPackager and actually run the jdkpackacker scripts * Explicitly include all the different envs in travis * Remove jdkpackager/test-package-image scripted test on travis * Upgrade to sbt-1.0.0-RC2 and use crossbuil * Go back to M6 and switch-case the provided dependencies * Run actual tests on MacOS X * use sbtVersion in pluginCrossBuild and downgrade to sbt-io M11 * Fix scripted camelCase jdkpackager * Try to upgrade to 1.0.0-RC2 * Build with 0.13.16 * Upgrade sbt-io * Fix linting error for ivy configs * Upgrade to 1.0.0-RC3 * Fix jar names in JavaAppPackaging. See sbt/sbt/issues/3388 * Formatting SettingsHelper * Adding the correct moduleSettings See sbt/librarymanagement/issues/154 * Upgrade scalafmt * Upgrade sbt-release process * Setting version to 1.2.2-RC1 * Setting version to 1.2.2-SNAPSHOT
* Cross build with sbt 1.0 * Fix travis.yml * Fix Build.scala scripted tests * Remove 'provided' scope for jdeb temporarily * Fix dependencies for scripted tests * Fix scripted test calls by using packageBin instead of package-bin * Fix multiproject-classifiers test by using new `withClassifier` method. This may break 0.13.6 -> add compat for this * Replace all *** PathFilter calls in scripted tests * Replace Process with sys.process.Process and add Compat.io import * Fixing all remaining scripted tests * Fix jdk-packager script tests * Fix travis osx oraclejdk8 issue: travis-ci/travis-ci/issues/2316 * Reduce travis ci test matrix * Update out-dated akka dependency in scripted test * Replace akka with typesafe config as a dependency test We need a stable library for scala 2.10 and 2.12. A java lib is more suitable here. * Fix wrong task names * Replace akka with typesafe config as a dependency test We need a stable library for scala 2.10 and 2.12. A java lib is more suitable here. * Polyfill new method `withClassifier` on sbt.Artifact * Remove jdk definition * List every test setup explicitly for travis * Also set env for the osx build * Only use java8 for testing and output scripted buffer * Another approach for travis * Fix rpm scripted tests * Rebase and fix newly added test * Fix debian scripted tests * Run only the script docker tests which don't require docker * Fix validateJdkPackager and actually run the jdkpackacker scripts * Explicitly include all the different envs in travis * Remove jdkpackager/test-package-image scripted test on travis * Upgrade to sbt-1.0.0-RC2 and use crossbuil * Go back to M6 and switch-case the provided dependencies * Run actual tests on MacOS X * use sbtVersion in pluginCrossBuild and downgrade to sbt-io M11 * Fix scripted camelCase jdkpackager * Try to upgrade to 1.0.0-RC2 * Build with 0.13.16 * Upgrade sbt-io * Fix linting error for ivy configs * Upgrade to 1.0.0-RC3 * Fix jar names in JavaAppPackaging. See sbt/sbt/issues/3388 * Formatting SettingsHelper * Adding the correct moduleSettings See sbt/librarymanagement/issues/154 * Upgrade scalafmt * Upgrade sbt-release process * Setting version to 1.2.2-RC1 * Setting version to 1.2.2-SNAPSHOT
steps
wip/cross-build-sbt-1.0
; ++2.12.2 ; ^^1.0.0-RC3
scripted jar/*
testsproblem
The jar file names should contain the
organization
, but it is missing.All tests in the
jar/*
folder check theMANIFEST.MF
that the classpathhas all necessary jars.
The error message indicates that the names have changed:
Instead I have
config-1.3.1.jar
.( the actual log shows 'akka-actor', which is simply wrong output. I'm fixing that in the next commits )
expectation
The exported jars contain the
organization
andnormalizedName
.notes
sbt version: 1.0.0-RC3
The text was updated successfully, but these errors were encountered: