forked from twitter/pants
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade zinc's sbt dependency to 1.0.0: JVM portion
This review is based off Stu's unsubmitted previous effort: https://rbcommons.com/s/twitter/r/3658/ The python portion is in https://rbcommons.com/s/twitter/r/4342/ It has everything from rb/3658: * Update for new sbt/zinc repo, that also includes a few fixes for us: ** empty analysis sbt/zinc#144 ** class file analysis trigger static initializers run sbt/zinc#151 * Exclude the existing io/logging deps, and re-include them explicitly as forced (with the appropriate classifiers) * Update all imports/dependencies to new locations * Require an explicit -cache-dir (which will be placed inside the pants cache directory in the review that incorporates this * version) * Remove the -name-hashing flag, as name hashing is required for the now-default class-based dependency tracking. * Rename sbt-interface to compiler-interface, and compiler-interface to compiler-bridge. Confused yet? Plus a few other changes: * Analysis format recently changed to a zip with two entries. This review keeps the plain txt format pants parser uses. Long term we probably should switch to some internal format that's more stable and lighter weight. * An option to turn off zinc provided file manager, see sbt/zinc#185 * re-enable the optimization to check class existence from analysis (Significant performance impact, esp. for incremental compile) Testing Done: https://travis-ci.org/peiyuwang/pants/builds/172980195 https://travis-ci.org/peiyuwang/pants/builds/174415697 Bugs closed: 3962, 4021 Reviewed at https://rbcommons.com/s/twitter/r/4340/
- Loading branch information
Showing
25 changed files
with
338 additions
and
450 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
jar_library( | ||
name='zinc', | ||
jars=[ | ||
scala_jar(org='org.scala-sbt', name='zinc', rev='1.0.0-X5', | ||
excludes=[ | ||
exclude(org='org.scala-sbt', name='io_2.10'), | ||
exclude(org='org.scala-sbt', name='util-logging_2.10'), | ||
]), | ||
], | ||
) | ||
|
||
jar_library( | ||
name='util-logging', | ||
jars=[ | ||
# TODO: `zinc` only declares a dep on the `tests` classifier for | ||
# util-logging for some reason. We redefine the dep here to get the full package. | ||
scala_jar(org='org.scala-sbt', name='util-logging', rev='0.1.0-M13', force=True), | ||
], | ||
) | ||
|
||
jar_library( | ||
name='io', | ||
jars=[ | ||
# TODO: `zinc` only declares a dep on the `tests` classifier for | ||
# io. We redefine the dep here to get the full package. | ||
scala_jar(org='org.scala-sbt', name='io', rev='1.0.0-M6', force=True), | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.