Skip to content

Commit ac30984

Browse files
authored
Merge pull request #810 from SethTisue/community-build-blog-post
blog post about the Scala community build
2 parents 44cd369 + 1ac3bf4 commit ac30984

File tree

1 file changed

+143
-0
lines changed

1 file changed

+143
-0
lines changed
Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
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+
## Why do we do this?
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+
## Has it helped?
36+
37+
Definitely. Over the past few years, the build has often caught
38+
regressions and unanticipated source-compatibility issues.
39+
40+
During the Scala 2.12 cycle, feedback from the community build was key
41+
for guiding the work on SAMs and the new trait encoding. And, seeing what
42+
went wrong in downstream projects as the 2.12 changes went in was a
43+
major source for developing the migration guidelines in the
44+
[2.12 release notes](https://github.com/scala/scala/releases/tag/v2.12.0).
45+
46+
In the Scala 2.13 cycle, we expect the community build to play a
47+
similar role in transitioning first our own code, then the entire
48+
open-source ecosystem, to the
49+
[new collections library](http://www.scala-lang.org/blog/2017/02/28/collections-rework.html).
50+
We've also [begun using it](https://github.com/scala/community-builds/issues/609) to
51+
gauge our progress on Java 9 support.
52+
53+
Library authors have also benefited. The community build has
54+
often provided early warning of compatibility issues because
55+
of changes to Scala or changes to other libraries. It has helped
56+
maintainers standardize their builds, keep their dependencies
57+
up-to-date, identify flaky tests, and shake out assorted other
58+
issues.
59+
60+
## How big is it?
61+
62+
The community build has been growing steadily since 2013.
63+
These days it includes:
64+
65+
### 2.8 million lines of code
66+
67+
That's a lot!
68+
69+
The build uses a
70+
[custom compiler plugin](https://github.com/sethtisue/cloc-plugin) to
71+
make sure that only code that is actually compiled is counted.
72+
[cloc](https://github.com/AlDanial/cloc), the standard tool for counting
73+
lines of code, takes care of filtering out blank lines and comments.
74+
75+
### 141 projects
76+
77+
There are now 141 projects in the community build, as listed in the
78+
[config file](https://github.com/scala/community-builds/blob/2.12.x/configs/project-refs.conf).
79+
They are: acyclic, akka, akka-contrib-extra, akka-http,
80+
akka-http-cors, akka-http-session, akka-persistence-cassandra,
81+
algebra, ammonite, argonaut, atto, autowire, base64, better-files,
82+
blaze, breeze, cachecontrol, case-app, catalysts, cats, cats-effect,
83+
circe, circe-config, conductr-lib, coursier, discipline, dispatch,
84+
doodle, elastic4s, fansi, fastparse, fs2, genjavadoc, geny, gigahorse,
85+
github4s, http4s, http4s-websocket, jackson-module-scala, jawn-fs2,
86+
jawn, json4s, kind-projector, kxbmap-configs, lagom, lift-json,
87+
lightbend-emoji, log4s, machinist, macro-compat, macro-paradise,
88+
meta-paradise, metaconfig, mima, minitest, monix, monocle, multibot,
89+
nscala-time, nyaya, paiges, paradox, parboiled, parboiled2, pcplod,
90+
play, play-doc, play-json, play-webgoat, play-ws, pprint, pureconfig,
91+
sbinary, sbt-io, sbt-librarymanagement, sbt-testng, sbt, sbt-util,
92+
scala-async, scala-collections-laws, scala-continuations,
93+
scala-debugger, scala-gopher, scala-java8-compat, scala-js,
94+
scala-json-ast, scala-logging, scala-parser-combinators,
95+
scala-partest-interface, scala-partest, scala-records,
96+
pscala-refactoring, scala-ssh, scala-stm, scala-swing, scala-xml-quote,
97+
scalacheck, scalacheck-shapeless, scalafix, scalafmt, scalaj-http,
98+
scalachess, scaladex, scalalib, scalameta, scalameter, scalamock,
99+
scalapb-lenses, scalapb, scalaprops, scalariform, scalastyle,
100+
scalatags, scalatest, scalatex, scalaz, scalikejdbc, scallop,
101+
scodec-bits, scodec, scopt, scoverage, semanticdb-sbt, shapeless,
102+
simulacrum, sjson-new, sksamuel-exts, slick, sourcecode, specs2,
103+
spire, spray-json, ssl-config, tut, twirl, twitter-util, twotails,
104+
unfiltered, upickle, utest, zinc.
105+
106+
Want to add your project to the community build? See our
107+
[eligibility guidelines](https://github.com/scala/community-builds/wiki/Eligibility).
108+
109+
## Learning more, getting involved
110+
111+
The community build is documented in a
112+
[wiki](https://github.com/scala/community-builds/wiki). Many of the
113+
questions you might have are already answered there.
114+
115+
If you have a question or want to get involved in the community
116+
build or in open source work on Scala more generally, come to the Scala
117+
contributors [forum](https://contributors.scala-lang.org) or
118+
[chat room](https://gitter.im/scala/contributors).
119+
120+
Especially involved or specialized discussions about the community
121+
build can move to the community build's own
122+
[Gitter room](https://gitter.im/scala/community-builds) and
123+
[GitHub issues](https://github.com/scala/community-builds/issues).
124+
125+
## Credits
126+
127+
The main
128+
[contributors](https://github.com/scala/community-builds/graphs/contributors)
129+
have been myself (Seth Tisue), Adriaan Moors, Grzegorz Kossakowski,
130+
Jason Zaugg, and Toni Cunei, all of whom are current or former
131+
employees of Lightbend. Toni is also the primary author of
132+
[dbuild](https://github.com/lightbend/dbuild), the meta-build tool
133+
that makes the community build possible.
134+
135+
The community build also couldn't exist without continual help and
136+
advice from the maintainers of the included projects. You are
137+
marvelous!
138+
139+
## Related projects
140+
141+
You might also like to investigate the nascent
142+
[Dotty community build](https://github.com/lampepfl/dotty-community-build)
143+
and [sbt community build](https://github.com/sbt/sbt-standalone-build).

0 commit comments

Comments
 (0)