|
| 1 | +--- |
| 2 | +layout: blog-detail |
| 3 | +post-type: blog |
| 4 | +by: Seth Tisue |
| 5 | +title: "Scala community build grows to 141 projects, 2.8 million lines of code" |
| 6 | +--- |
| 7 | + |
| 8 | +We on the Scala team would like to call some attention to a |
| 9 | +lesser-known but crucial component of the development effort behind |
| 10 | +Scala. It's called the Scala community build. |
| 11 | + |
| 12 | +## What is it? |
| 13 | + |
| 14 | +It's a collection of open-source Scala code that includes many of the |
| 15 | +most-used libraries in the Scala ecosystem. |
| 16 | + |
| 17 | +But it's more than just a big pile of code; we actually compile all of |
| 18 | +these codebases, run their test suites, and rewire their builds to |
| 19 | +depend on each other, so only freshly built code, built by freshly |
| 20 | +built Scala, is involved. |
| 21 | + |
| 22 | +## What's it for? |
| 23 | + |
| 24 | +Having the community build as a backstop and testbed means we can |
| 25 | +confidently assess the impact of proposed changes to the Scala |
| 26 | +language, compiler, and standard library. |
| 27 | + |
| 28 | +Our Jenkins cluster runs the community build every day against the |
| 29 | +latest Scala nightly build. |
| 30 | + |
| 31 | +We often also run the community build against individual pull requests |
| 32 | +in the [scala/scala repo](https://github.com/scala/scala) to assess |
| 33 | +the impact of the PR and detect regressions before the PR is merged. |
| 34 | + |
| 35 | +## How big is it? |
| 36 | + |
| 37 | +The community build has been growing steadily since 2013. |
| 38 | +These days it includes: |
| 39 | + |
| 40 | +### 2.8 million lines of code |
| 41 | + |
| 42 | +That's a lot! |
| 43 | + |
| 44 | +The build uses a |
| 45 | +[custom compiler plugin](https://github.com/sethtisue/cloc-plugin) to |
| 46 | +make sure that only code that is actually compiled is counted. |
| 47 | +[cloc](https://github.com/AlDanial/cloc), the standard tool for counting |
| 48 | +lines of code, takes care of filtering out blank lines and comments. |
| 49 | + |
| 50 | +### 141 projects |
| 51 | + |
| 52 | +There are now 141 projects in the community build, as listed in the |
| 53 | +[config file](https://github.com/scala/community-builds/blob/2.12.x/configs/project-refs.conf). |
| 54 | +They are: acyclic, akka, akka-contrib-extra, akka-http, |
| 55 | +akka-http-cors, akka-http-session, akka-persistence-cassandra, |
| 56 | +algebra, ammonite, argonaut, atto, autowire, base64, better-files, |
| 57 | +blaze, breeze, cachecontrol, case-app, catalysts, cats, cats-effect, |
| 58 | +circe, circe-config, conductr-lib, coursier, discipline, dispatch, |
| 59 | +doodle, elastic4s, fansi, fastparse, fs2, genjavadoc, geny, gigahorse, |
| 60 | +github4s, http4s, http4s-websocket, jackson-module-scala, jawn-fs2, |
| 61 | +jawn, json4s, kind-projector, kxbmap-configs, lagom, lift-json, |
| 62 | +lightbend-emoji, log4s, machinist, macro-compat, macro-paradise, |
| 63 | +meta-paradise, metaconfig, mima, minitest, monix, monocle, multibot, |
| 64 | +nscala-time, nyaya, paiges, paradox, parboiled, parboiled2, pcplod, |
| 65 | +play, play-doc, play-json, play-webgoat, play-ws, pprint, pureconfig, |
| 66 | +sbinary, sbt-io, sbt-librarymanagement, sbt-testng, sbt, sbt-util, |
| 67 | +scala-async, scala-collections-laws, scala-continuations, |
| 68 | +scala-debugger, scala-gopher, scala-java8-compat, scala-js, |
| 69 | +scala-json-ast, scala-logging, scala-parser-combinators, |
| 70 | +scala-partest-interface, scala-partest, scala-records, |
| 71 | +pscala-refactoring, scala-ssh, scala-stm, scala-swing, scala-xml-quote, |
| 72 | +scalacheck, scalacheck-shapeless, scalafix, scalafmt, scalaj-http, |
| 73 | +scalachess, scaladex, scalalib, scalameta, scalameter, scalamock, |
| 74 | +scalapb-lenses, scalapb, scalaprops, scalariform, scalastyle, |
| 75 | +scalatags, scalatest, scalatex, scalaz, scalikejdbc, scallop, |
| 76 | +scodec-bits, scodec, scopt, scoverage, semanticdb-sbt, shapeless, |
| 77 | +simulacrum, sjson-new, sksamuel-exts, slick, sourcecode, specs2, |
| 78 | +spire, spray-json, ssl-config, tut, twirl, twitter-util, twotails, |
| 79 | +unfiltered, upickle, utest, zinc. |
| 80 | + |
| 81 | +Interested in adding a library? See our |
| 82 | +[eligibility guidelines](https://github.com/scala/community-builds/wiki/Eligibility). |
| 83 | + |
| 84 | +## Learning more, getting involved |
| 85 | + |
| 86 | +The community build is documented in a |
| 87 | +[wiki](https://github.com/scala/community-builds/wiki). Many of the |
| 88 | +questions you might have are already answered there. |
| 89 | + |
| 90 | +If you have a question or want to get involved in the community |
| 91 | +build or in open source work on Scala more generally, come to the Scala |
| 92 | +contributors [forum](https://contributors.scala-lang.org) or |
| 93 | +[chat room](https://gitter.im/scala/contributors). |
| 94 | + |
| 95 | +Especially involved or specialized discussions about the community |
| 96 | +build can move to the community build's own |
| 97 | +[Gitter room](https://gitter.im/scala/community-builds) and |
| 98 | +[GitHub issues](https://github.com/scala/community-builds/issues). |
| 99 | + |
| 100 | +## Credits |
| 101 | + |
| 102 | +The main |
| 103 | +[contributors](https://github.com/scala/community-builds/graphs/contributors) |
| 104 | +have been myself (Seth Tisue), Adriaan Moors, Grzegorz Kossakowski, |
| 105 | +Jason Zaugg, and Toni Cunei, all of whom are current or former |
| 106 | +employees of Lightbend. Toni is also the primary author of |
| 107 | +[dbuild](https://github.com/lightbend/dbuild), the meta-build tool |
| 108 | +that makes the community build possible. |
| 109 | + |
| 110 | +The community build also couldn't exist without continual help and |
| 111 | +advice from the maintainers of the included projects. You are |
| 112 | +marvelous! |
| 113 | + |
| 114 | +## Related projects |
| 115 | + |
| 116 | +You might also like to investigate the nascent |
| 117 | +[Dotty community build](https://github.com/lampepfl/dotty-community-build) |
| 118 | +and [sbt community build](https://github.com/sbt/sbt-standalone-build). |
0 commit comments