aboutsummaryrefslogtreecommitdiff
path: root/libraries
Commit message (Collapse)AuthorAgeFilesLines
* fix recursive and make cbt package jarsChristopher Vogt2017-06-172-1/+8
|
* add process library with extracted and new functionsChristopher Vogt2017-06-154-0/+197
|
* Add ScalaXRay (sxr) pluginChristopher Vogt2017-04-051-2/+3
|
* Add Scalatex pluginChristopher Vogt2017-04-023-0/+126
|
* verify classpath feature to identify duplicate classesChristopher Vogt2017-04-021-6/+6
|
* Merge pull request #471 from cvogt/2.12-readyJan Christopher Vogt2017-04-025-14/+9
|\ | | | | 2.12 ready
| * scalatest plugin now does not need import anymoreChristopher Vogt2017-04-021-5/+0
| |
| * use scalariform from github master which fixes indentation bugChristopher Vogt2017-04-021-6/+6
| |
| * type-safe aliases for non cbt librariesChristopher Vogt2017-04-023-3/+3
| |
* | hopefully more self-explanatory nameChristopher Vogt2017-04-011-4/+4
|/
* ad cbt library build and scalariform to test scalatet-runnerChristopher Vogt2017-03-303-10/+20
|
* scalatest plugin for 2.12 (and move most code from plugin into library)Christopher Vogt2017-03-302-0/+45
|
* minor reflection related refactorChristopher Vogt2017-03-283-21/+31
|
* start modularizing cbt into librariesChristopher Vogt2017-03-2724-31/+710
| | | | | | | | | | this extracts certain parts of cbt into stand-alone libraries, which can be published to maven and used outside of cbt. This also adds scalariform for these parts of the code. This slows down cbt’s own build a lot because of the number of projects involved! So we’ll follow this by a bunch of performance tweak commits.
* Get rid of the hacky "essential" plugins separationChristopher Vogt2017-03-191-5/+2
| | | | | | | Let’s keep move them back into stage2 again instead for reduction of complexity, cbt build speed and convenience of fewer manual dependencies. And for that let cbt just include eval from the start.
* Document CBT plugin style guide and adjust Scalafmt plugin accordinglyChristopher Vogt2017-03-111-1/+1
|
* refactor scalafmt to new plugin styleChristopher Vogt2017-03-092-60/+30
| | | | | | | turn replaceSections into helper function instead of trait method proguard scalafmt build currently suffers from non-deterministic formatting. Try a few times to reproduce commited Proguard.scala
* improve whitespace readability in proguard pluginChristopher Vogt2017-03-052-149/+161
|
* separate type-safe proguard wrapper into self-contained libraryChristopher Vogt2017-03-045-0/+676
| | | | also make logic to maintain auto-generated sections re-usable
* more appropriate file nameChristopher Vogt2017-03-031-0/+1
|
* add capture_args macro for type-safe embedding of stringly typed apisChristopher Vogt2017-03-012-0/+61
|
* turn `test` into a subproject for easy access to test’s tasksChristopher Vogt2017-02-271-3/+3
|
* libraries readmeChristopher Vogt2017-02-221-0/+3
|
* easier setting of projectDirectory in sub-buildsChristopher Vogt2017-02-131-1/+1
| | | | | by replacing context.projectDirectory by workingDirectory and using it as the default but allowing it to being overridden
* idempotent change propagationChristopher Vogt2017-02-091-1/+1
| | | | | | using lastModified instead of a non-idempotent needsUpdate flag this fixes a bug where dependees would not be rebuilt if cbt exited or was killed after dependencies were already rebuilt.
* Add support for dynamic re-configuration.Christopher Vogt2016-11-081-1/+2
| | | | | The exact precedence rule of override code vs original code may still need to be tweaked as we go along.
* fix deprecation warnings in Eval under Scala 2.11.8Christopher Vogt2016-11-071-5/+3
|
* Make Eval tests pass and add them to cbt testsChristopher Vogt2016-11-072-6/+10
|
* Add test for overriding Eval classloaderChristopher Vogt2016-11-071-0/+7
|
* Make classloader overridable. CBT isolates classloaders, so Eval couldChristopher Vogt2016-11-071-8/+16
| | | | | only see itself, but it often needs to see things in the classloaders of user code, so now we can provie the classloader.
* Add cbt build for Eval and remove dependency on twitter util-coreChristopher Vogt2016-11-074-22/+55
|
* Add readme for Eval, pointing back to Twitter utilsChristopher Vogt2016-11-071-0/+7
|
* util-eval: Reset reporter while apply compilingnilday2016-11-072-0/+15
| | | | | | | | | | | | | | | | | | | | | | Problem I notice that the former release 6.36.0 reset the reporter after check(), which is not enough. In my use case, I would like to use apply with resetState=false (or simply inPlace), without checking it before (check method requires compiling every time, but apply method has cache). Under such circumstance, if I offer a piece of code with syntax error, it will throw CompilerException every time even if I correct it. It’s because the reporter hasn’t been reset. Solution Simply add resetReporter before compile will solve the problem. Signed-off-by: Christopher Coco <ccoco@twitter.com> RB_ID=871408
* util-eval: Reset reporter between checksTomasz Bekas2016-11-072-1/+28
| | | | | | | | | | | | | | | | | | | | | | | | Problem When you want to use the util-eval for validating the correctness of a small chunk of code, you have to reset whole state between invocations (flag resetState=true), which is expensive when you already have a bunch of compiled and loaded classes. Without this, if one check fails, all subsequent checks will fail as well, since some errors has been reported previously. Solution Scala compiler API allows for resetting just the reporter, so that compiled and loaded classes can remain for re-usage for next checks. Result Public API remains the same, however the internal API has one new synchronized method resetReporter() which does what is explained in the "Solution" section. Signed-off-by: Ryan O'Neill <ryano@twitter.com> RB_ID=859878
* Eval: add Serializable to wrapping classAdrien Lavoillotte2016-11-071-1/+1
| | | | | | | | | | Allows the compiled code to be executed remotely, e.g. using Apache Spark. Another option would be to make `wrapCodeInClass` (and `codeWrapperLineOffset`) `protected` instead of `private[this]`. Signed-off-by: Ruben Oanta <roanta@twitter.com> RB_ID=844794
* csl: Replace === with == in scalatest 2.x testsMoses Nakamura2016-11-071-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem We've been nagging each other about == vs ===. Solution ag -l ' === ' \ ./util \ ./ostrich \ ./finagle \ ./twitter-server \ ./scrooge \ ./twitter-server-internal | \ grep '\.scala' | \ xargs sed -i '' 's/ === / == /' ag -l ' ===' \ ./util \ ./ostrich \ ./finagle \ ./twitter-server \ ./scrooge \ ./twitter-server-internal | \ grep '\.scala' | \ xargs sed -i '' 's/ ===$/ ==/' Result No more === nags in RB RB_ID=766849
* util: Cleanup compiler warningsKevin Oliver2016-11-072-20/+16
| | | | | | | There are a lot of warnings when compiling util, this fixes many of them. RB_ID=739494
* Added ability to override `Reporter` used during compilation. See issue #89Simeon H.K. Fitch2016-11-072-20/+101
| | | | | | Signed-off-by: Moses Nakamura <mnakamura@twitter.com> RB_ID=572344
* Enable Scala 2.11 SBT builds for util-eval, ostrich, and finagle-ostrich4Travis Brown2016-11-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Problem We want to publish 2.11 releases of Finagle subprojects that depend on Ostrich, which we have not previously built for 2.11 (because it has specs tests, and because it depends on scala-json and util-eval, neither of which previously worked on 2.11). Solution util-eval previously didn't work on 2.11 because `scala.ScalaObject` has been removed since 2.10. This is fixed here. The bulk of this commit is Rodrigo Lazoti's migration of Ostrich's tests from specs to ScalaTest (I'm not using his pull request since the PR also replaces scala-json with Jackson, which we don't want to do at this time to avoid breaking public APIs). This commit also reinstates util-eval and the Finagle subprojects that depend on Ostrich in their projects' cross-builds. Result util-eval, ostrich, finagle-ostrich4, finagle-example, and finagle-stress all build and pass tests on 2.11 (from SBT) for the first time. RB_ID=534127
* [split] util-* Convert all tests in util to scalatestGeorge Leontiev2016-11-073-44/+56
| | | | | | | | | | | | | | | | | | Problem specs is deprecated and throws a fair number of NullPointerExceptions in scala 2.10 Also all of our tests are disabled in scala 2.10 for sbt Solution Port all our tests to scalatest This is based off of this PR: https://github.com/twitter/util/pull/97 Result Tests pass RB_ID=397681
* [split] Fix typo in Eval.scalaKenneth Rose2016-11-071-1/+1
| | | | | | Signed-off-by: Evan Meagher <evm@twitter.com> RB_ID=290353
* [split] finagle & util: 2.10 pattern matching strictnessBerk D. Demir2016-11-071-2/+2
| | | | | | | | 2.10 compiler is much more strict about pattern matching exceptions and warns if catch all case is not qualified with `Throwable`. So let's do that to decrease compiler warnings. RB_ID=237379
* [split] Gizzard: Some followup deps alignment to fix deployment classpath issuesStu Hood2016-11-071-1/+8
| | | | | RB_ID=152166 TBR=true
* [split] util-eval: fix for when class files are on the classpath directlyKoert Kuipers2016-11-071-9/+26
| | | | | | | | | | | | | fix for when scala.tool.nsc.Interpreter and scala.ScalaObject class files are on the classpath directly instead of in jar. fix for when multiple class loaders are used. i needed both these fixes to use Eval with 'hadoop jar' and a fat jar since hadoop unpacks the jar to a temporary directory and puts the class files directly on the classpath by introducing a new class loader Signed-off-by: Rao Fu <rao@twitter.com> RB_ID=142194
* Eval should now allow classpaths that included spacesStephen Judkins2016-11-071-6/+2
| | | | | Github-pull-request: https://github.com/twitter/util/pull/24 Signed-off-by: marius a. eriksen <marius@twitter.com>
* [split] capitalize Scala and document the indentation parameter.Robey Pointer2016-11-071-2/+10
|
* [split] improve the docs a bit.Robey Pointer2016-11-071-17/+14
|
* [split] merge stephenjudkins fix for spaces in classpaths.Robey Pointer2016-11-071-2/+6
|
* [split] Eval.scala: Allow @deprecatedDavid Helder2016-11-073-2/+13
| | | | | | | | The Scala compiler propagates warnings through exceptions. So Eval failed if an Eval'ed file uses something deprecated. Disable warnings. RB_ID=63167
* [split] TO MAVENmmcbride2016-11-071-2/+2
|