Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

sync with upstream #17

Open
wants to merge 478 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
478 commits
Select commit Hold shift + click to select a range
332a986
Use incompatible_use_toolchain_transition in all rules which depend o…
Dec 9, 2020
39c311d
Fix maven_servers parameter passing in scala_repositories (#1168)
gergelyfabian Dec 14, 2020
ff90ba9
Rollback usage of `use_jacoco` attribute (#1171)
Dec 16, 2020
cdaccd5
Use toolchain for providing jacocorunner (#1172)
gergelyfabian Dec 19, 2020
2e7a380
Script to generate custom jacocorunner (#1173)
gergelyfabian Jan 11, 2021
5df8033
Reporter tests (#1176)
SocksDevil Jan 13, 2021
0796d93
Update README.md (#1180)
Jan 15, 2021
27e7a8f
Fix docs: use external name for minimal deps toolchain (#1179)
Jan 15, 2021
adc7214
Fix error reporting on 2.11 (#1177)
SocksDevil Jan 15, 2021
9cc05e1
Fix typo `classapath` -> `classpath` (#1181)
Jan 15, 2021
cf4e507
Stamp scalac jars (#1178)
Jan 15, 2021
18b6636
Attempt to load target label from jar for unknown labels (#1183)
Jan 22, 2021
f08de1f
Remove specs2 binds (#1184)
Jan 22, 2021
939fa4c
Stamp scala_import jars (#1160)
Jan 22, 2021
7849a5e
Move version tests to buildkite (#1185)
Jan 25, 2021
7b2ea5d
Update rules java to support Bazel 4.0.0 (#1186)
Jan 25, 2021
a9beadd
Fix scala_import file name collision in the same package (#1189)
Jan 26, 2021
41005de
Move examples build to bk (#1192)
Jan 27, 2021
c05005c
Update buildifier (#1194)
Jan 29, 2021
84d7473
Linter script (#1191)
Jan 29, 2021
c3750b0
Update linter settings after buildifier update (#1195)
Jan 30, 2021
6f2df55
Move test_rules_scala and test_reproducibility to BK, remove Travis (…
Jan 30, 2021
3781378
Revert scala_import stamping (#1201)
Feb 1, 2021
9c01bd8
Fix action_should_fail_with_message sh helper (#1198)
simuons Feb 2, 2021
4328200
scala_proto: configure ScalaPbCodeGenerator instead of worker (#1193)
simuons Feb 2, 2021
375d2bd
Report exceptions from protoc generator (#1202)
simuons Feb 3, 2021
642561f
Remove junit binds (#1203)
Feb 5, 2021
22a67e1
Fixing scalap version for Scala 2.11.12 (#1206)
gergelyfabian Feb 9, 2021
96f3968
Remove JMH binds (#1207)
Feb 9, 2021
f4f0950
Remove tut binds (#1208)
Feb 9, 2021
e9dfbe3
Remove proto binds (#1209)
Feb 9, 2021
1a57684
Remove scala repository binds (#1210)
Feb 9, 2021
1162eea
scala_proto_library code generation with FileDescriptorSets (#1213)
simuons Feb 12, 2021
99677f0
Scala Import stamping (#1214)
Feb 12, 2021
b3397b4
Remove test for development version of bazel for the diagnostics file…
SocksDevil Feb 12, 2021
de13a82
Change host_javabase cfg from host to exec (#1216)
simuons Feb 12, 2021
3d3a6b4
Move coverage tests under a separate jobs with fixed bazel version (#…
Feb 17, 2021
475cc5b
Remove redundant call to buildifier setup (#1217)
Feb 17, 2021
caf159c
Clean up package names related to dependencyanalyzer (#1219)
Feb 17, 2021
43a742b
Require ProtoInfo for deps in scala_proto_library (#1221)
simuons Feb 18, 2021
e8599eb
Update scrooge-generator, scrooge-core, util-core and util-logging to…
cattibrie Feb 19, 2021
8c2f294
Remove to-be-removed flags from default_java_toolchain (#1227)
simuons Feb 22, 2021
4130036
Use ctx.actions.args() in compile_scala (#1124)
simuons Feb 23, 2021
70a9742
Update scrooge and util libs to version 21.2.0 for scala 2.13 (#1226)
cattibrie Feb 23, 2021
7d8fd8a
Add Domino Data Lab as a rules_scala adopter (#1229)
urianchang Feb 24, 2021
06aec8d
Fix scala_import stamp label (#1231)
Feb 28, 2021
664a7ad
Support scrooge-generator compiler flags in thrift_library rule (#1228)
cattibrie Mar 1, 2021
a38236a
Add external name to the stamping setting example (#1235)
Mar 4, 2021
50f3057
scala_proto_library test stamping test (#1237)
Mar 4, 2021
d921053
Simplify scalac worker args format (#1230)
simuons Mar 5, 2021
68525d9
Dep tracking filtering (#1241)
Mar 10, 2021
cd2ec86
Add rules_scala support channels to readme (#1244)
Mar 12, 2021
b4156b2
Correct strict deps script name (#1242)
Mar 12, 2021
369ac2f
Stop setting BAZEL_VERSION (#1247)
illicitonion Mar 15, 2021
f02ed21
Add multi framework example (#1248)
Mar 17, 2021
b1f1981
Remove imports which cause warnings (#1251)
Mar 19, 2021
e0051b1
Add coverage support for specs2 with junit runner (#1250)
jauniusb Mar 19, 2021
b85d122
Scala proto conventional stamping (#1243)
Mar 22, 2021
a587390
Configure major scala version via repo_env (#1259)
simuons Apr 7, 2021
772cdc6
Restored check with latest version (#1205)
or-shachar Apr 9, 2021
0ac75d3
docs - use external deps toolchain type (#1260)
hrvolapeter Apr 22, 2021
a21cfdc
Remove incorect use of rstrip (#1262)
Apr 30, 2021
f782615
Pass along tags in scala_test_suite (#1261)
cocreature Apr 30, 2021
3d22381
rules_scala stewardship update (#1263)
ittaiz Apr 30, 2021
27aaff7
Provide arguments to JacocoInstrumenter without using delimiter (#1252)
jauniusb May 4, 2021
182d021
Remove tut_rule (#1264)
simuons May 5, 2021
0132050
[BenchmarkGenerator] Fixing scalac warnings (#1265)
or-shachar May 5, 2021
c9cc7c2
Removes scala_version (#1266)
Marcus-Rosti May 11, 2021
2b7edf7
Delete dead code from ProtoReporter (#1270)
cocreature Jun 3, 2021
e7a948a
Remove ubuntu1604 from presubmit.yml (#1271)
philwo Jul 1, 2021
51d4246
Load @com_google_protobuf//:protoc via rules_proto (#1273)
Jul 13, 2021
2975127
Fix typos in dependency-tracking README (#1274)
jcallin Jul 18, 2021
7a2c351
Extra jmh options: testonly, runtime_deps (#1275)
donce Jul 22, 2021
c997c44
Fix build jacoco scripts (#1278)
BillyAutrey Jul 31, 2021
5e14dfd
Add Bazel action mnemonic for Thrift archive generation (#1282)
keithkml Aug 26, 2021
7bf594b
Fix missing directories in JaCoCo instrumented jars (#1281)
BillyAutrey Sep 2, 2021
0f55e9f
Remove same package imports (#1283)
Sep 5, 2021
5e5ab0e
Make Bazel 4.1.0 minimal required version (#1284)
Sep 6, 2021
2437e40
Remove customized ijar code (#1285)
Sep 6, 2021
0f38f21
Add directory scanning support to JUnit test discovery (#1289)
Sep 21, 2021
e21dd30
use google-style-format to format all java files according to google …
wix-andriusb Sep 28, 2021
a0ce353
Implement flattenLeft to support newer specs2 versions (#1295)
gaudrius Sep 30, 2021
131ab56
[readme] Add twitter to production users (#1296)
adam-singer Oct 6, 2021
f745b7e
Document that it's possible to override scala artifacts while calling…
gergelyfabian Oct 11, 2021
d4c9a83
Upgrading Scala 2.12 to 2.12.14 (#1301)
gergelyfabian Oct 11, 2021
6e37eac
Upgrading Scala 2.13 to 2.13.6 (#1303)
gergelyfabian Oct 11, 2021
f9e6125
Remove uses of host_javabase in java_common calls. (#1307)
comius Oct 26, 2021
fd997e6
Fix missing xmllint binary on ubuntu1804 (#1308)
philwo Oct 26, 2021
2894ca2
Replace output_jar with output_sources_jar in java_common.pack_source…
comius Nov 5, 2021
e4560ac
Do not prefix workspace name on absolute java path (#1313)
aherrmann Nov 8, 2021
17791a1
Add flag to disable writing volatile bits of statsfile (#1298)
adam-singer Nov 17, 2021
1d98a80
Use stable file paths in scalac actions (#1315)
simuons Nov 29, 2021
97110c9
Fix long file names in scalac action when handling srcjars (#1323)
simuons Dec 13, 2021
5ab2eda
Remove use of deprecated java_toolchain to fix builds with Bazel mast…
Dec 13, 2021
72adeb5
Fix scala toolchains link in README (#1327)
Jan 3, 2022
bd11f61
feat(phase-compile): disable ijar for scala3 (#1332)
Jan 14, 2022
ab1bc5b
feat(specs2): remove scope and shoulds (#1333)
Jan 14, 2022
1f2c78b
feat(specs2): scala3 support for runner (#1334)
Jan 14, 2022
9d0d4f9
scala_doc: Add support for building docs without transitive dependenc…
rahuliyer95 Jan 18, 2022
df59dc6
use composition in runner to avoid double lazy initialization when ru…
mardaravicius Jan 20, 2022
f794d14
Add initial repositories for Scala 3.1 (#1342)
Feb 3, 2022
388d452
Update buildkite jobs (#1345)
liucijus Feb 8, 2022
8eb948c
Fix org_typelevel__cats_core sha for 2.13 (#1346)
liucijus Feb 8, 2022
e942d94
Tweaks to `scalafmt` rules/script to support `bazel test` wrappers (#…
virusdave Feb 8, 2022
22e999c
Change default phase ordering for `scalafmt` phase. (#1347)
virusdave Feb 9, 2022
a9cad8b
Fix Bazel latest and 5.0.0 Buildkite jobs (#1348)
liucijus Feb 9, 2022
3b9c834
Update presubmit.yml (#1349)
liucijus Feb 9, 2022
d8b0336
Update scrooge support to be compatible with Scala 3 (#1350)
Feb 10, 2022
7e22a7e
Update scripts workers to be compatible with Scala 3 (#1352)
Feb 11, 2022
b69907d
Update scalac opts in test reporter to support Scala 3 (#1353)
Feb 11, 2022
9fe1a18
Update jmh support to be compatible with Scala 3 (#1351)
Feb 11, 2022
e1abf93
Update scalafmt worker to be compatible with Scala 3 (#1354)
Feb 11, 2022
ca2ed27
Scala 3 minimal support (#1355)
Feb 14, 2022
bb67c8e
Move ScalaTest deps to its own repository macro (#1356)
Feb 15, 2022
3fe4b9f
Clean up versions tests (#1357)
Feb 17, 2022
088c087
set -e for ctx.actions.run_shell commands (#1360)
simuons Feb 25, 2022
ce7f8c3
Fix deprecation warning in ScalaPBWorker (#1367)
simuons Mar 17, 2022
9b85aff
Scalatest version bump to 3.2.9 (#1368)
justinass-wix Mar 17, 2022
75701d0
Use java_common.stamp_jar to stamp scala_import jar (#1372)
Mar 22, 2022
a2b971d
Minimal implementation of compiler utils for Scala 3 Dependency Analy…
justinass-wix Mar 22, 2022
a148a3a
Allow per-target java runtime selection for scala_junit_tests (#1373)
wiwa Mar 29, 2022
0b2bd39
Single-jar pack_sources should conform to Bazel behavior (#1378)
wiwa Apr 6, 2022
cd556cc
Take --instrumentation_filter into account in coverage phase (#1377)
fmeum Apr 7, 2022
d789f0a
Add runtime_jdk to scala_binary (#1380)
wiwa Apr 8, 2022
3dd5d81
Create jdeps output from classpath entries (#1376)
Apr 8, 2022
de3d3a7
Allow `scala_junit_tests` targets to specify test environment variabl…
wiwa Apr 25, 2022
470cd83
Consistent argsfile parsing (#1385)
wiwa Apr 28, 2022
ddde9b3
Revert "Create jdeps output from classpath entries (#1376)" (#1388)
Apr 29, 2022
3907126
Use a public java_compile_toolchain attr instead of _java_toolchain (…
wiwa May 9, 2022
62d2af1
scala_doc: Use argfile to build scaladocs (#1390)
rahuliyer95 May 9, 2022
4ba3780
Expose _source_jars output group in scala_import (#1394)
Duhemm May 17, 2022
11f61ab
JacocoRunner script: update for Bazel 5.0+ (#1399)
gergelyfabian Jun 6, 2022
94fdc81
feat: added support for inherited_environment in scala_test rule (#1401)
omerlh Jun 6, 2022
a64d5cd
Fix JacocoInstrumenter with JDK 13+ (#1402)
dmivankov Jun 8, 2022
681dedd
scala_doc: Export ScaladocAspectInfo to allow users to build custom s…
rahuliyer95 Jun 8, 2022
e14f252
Fix rules_scala JDK lookup when using --nolegacy_external_runfiles. (…
srdo-humio Jun 30, 2022
71d7135
Declare non-windows executable with .sh extension (#1407)
wiwa Jul 28, 2022
972fdf2
Put -s in front of other parameters for the ScalaTest runner. (#1412)
srdo-humio Jul 29, 2022
ae781e4
Fix aspect test to recognize `@//` labels (#1417)
Wyverald Sep 7, 2022
a40063e
Fix test_scala_proto_library to accept @-prefixed labels (#1418)
Wyverald Sep 9, 2022
d67f993
Make 5.3.1 minimal supproted version (#1423)
Sep 21, 2022
b69224c
Cleanup Bazel 5.2 test (#1426)
Sep 23, 2022
b92d555
Allow scala_benchmark_jmh to specify a runtime_jdk version (#1424)
wiwa Sep 26, 2022
8e7e717
Update Coverage test data to Bazel 5.3.1 (#1427)
Sep 26, 2022
02ea803
Test examples with Bazel 5.3.1 (#1428)
Sep 27, 2022
85f85d1
docs: fix broken links (#1429)
tanishiking Sep 29, 2022
4960e77
fix: enable to override JAVABIN of wrapper script (#1432)
tanishiking Oct 10, 2022
ccd0fe5
Extract scalacopts phase (#1435)
Oct 13, 2022
887c9be
Suppress warning and enable to use dependency_tracking with `-Werror`…
tanishiking Oct 13, 2022
1373d30
Validate repository Scala version against scala_config (#1436)
Oct 20, 2022
151dd8d
Fix setup guide in readme (#1444)
simuons Nov 8, 2022
d095ee8
Revert "Declare non-windows executable with .sh extension (#1407)" (#…
ittaiz Nov 11, 2022
c711b4d
Update example Rules Scala setup macros (#1438)
Nov 11, 2022
73f5d1a
Update Rules Scala to match setup (#1447)
Nov 11, 2022
dee33f4
java_stub_template to use argument file instead of classpath jar (#1410)
ittaiz Nov 30, 2022
15f2461
Fix resource priority under name collision (#1456)
tanishiking Dec 12, 2022
88ec960
add tagged release workflow using github actions (#1452)
jvandew Dec 12, 2022
11a2dd5
Simplify setup of scala_toolchain and its deps (#1439)
Dec 12, 2022
ceccd53
Add setup testing toolchain macro (#1451)
Dec 12, 2022
3e3fdda
phase_merge_jars: refactor to separate function that merges jars to o…
gergelyfabian Dec 16, 2022
c96948c
Fix toolchain type reference (#1460)
tgeng Dec 20, 2022
a0235fd
Update to be removed "host" cfg to "exec" (#1462)
Jan 10, 2023
cb950f5
Replace zipper with singlejar (#1463)
simuons Jan 20, 2023
1e4df56
Bump jmh version: 1.20 -> 1.36 (#1466)
dkomanov Jan 30, 2023
22f0a80
Fix external name in workspace snippet (#1469)
Feb 6, 2023
56bfe4f
Tracking implicit compiler dependencies (#1459)
Feb 13, 2023
67b689d
Add exec transition to _lcov_merger (#1474)
thirtyseven Feb 27, 2023
f674f8f
Upload stable archive to release (#1473)
Feb 27, 2023
e63ba1e
Add support for Scala 3.2.1 (#1465)
meisam Feb 27, 2023
6b5bf4a
Fix dead link in readme (#1476)
hanneskaeufler Feb 27, 2023
6c1f034
Update rule dependencies (#1478)
Mar 15, 2023
068122a
Fixing JacocoRunner building script for Jacoco (#1485)
gergelyfabian Mar 26, 2023
394c0aa
Catch macro expansion exceptions in ScalacWorker (#1489)
thirtyseven Apr 4, 2023
69c91a9
Improve scala_config() documentation in README.md (#1494)
kolotyluk Apr 24, 2023
4e903af
Handle StackOverflowError in macros (#1491)
thirtyseven Apr 24, 2023
ce54e00
Allow user to provide scalac source jar for "ast-plus" dependency tra…
thirtyseven Apr 24, 2023
7b25715
Mark unused deps as ignored for mixed source targets (#1499)
May 11, 2023
d6b81c8
Replace relative paths to ../ with external/ (#1500)
prebeta Jun 2, 2023
12d60d2
Add support for Scala 3.3 LTS (#1501)
csubj Jun 16, 2023
76ee19f
For Windows: Fix to enable scala_test and scala_binary outputs to be …
crt-31 Jul 3, 2023
58b98f2
Make DepsTrackingReporter handle Windows path separators (#1503)
crt-31 Jul 8, 2023
0124872
call close() on compiler in scalacWorker after each job (#1504)
crt-31 Jul 17, 2023
30f8fbe
Register java toolchain inside rules_scala (#1505)
kotlaja Jul 17, 2023
ae90811
Update minimal supported Bazel version to 6.3.0 (#1506)
Jul 26, 2023
a42f009
register java toolchain (#1510)
mai93 Aug 30, 2023
b17e9e0
singlejar executable from specified java compile toolchain (#1511)
simuons Sep 4, 2023
73719cb
Upgrade scala 2.12.x and 2.13.x versions (#1515)
scoquelin Oct 2, 2023
0391ef4
Add support for netrc in jvm_maven_import_external (#1509)
dmivankov Oct 2, 2023
ee6c91d
Add SemanticDB support - cont. (#1508)
crt-31 Oct 2, 2023
acebcfe
Fix semanticdb-scalac checksums for Scala 2.12.18 and 2.13.11 (#1518)
scoquelin Oct 3, 2023
6dd98a1
Upgrade to Scala 2.13.12 (#1517)
scoquelin Oct 4, 2023
d94ee55
JacocoRunner script: update for Bazel 6.0+ (#1516)
gergelyfabian Oct 4, 2023
421a9e8
Fix handling of cycles in AST traversal in Dependency Analyzer (#1519)
Oct 17, 2023
9c0f6b9
Bazel 7.0 rc2 support (#1524)
gergelyfabian Nov 6, 2023
f938141
Fix diagnostics for Scala 2.13.12 (#1522)
scoquelin Nov 27, 2023
b757df9
doc: Register proto toolchain for simple usage (#1531)
honnix Dec 4, 2023
2ac956b
Use tagged Rules Scala release in README.md (#1533)
Dec 4, 2023
1ddfd88
Add jdk toolchain type to proto rules (#1534)
Dec 19, 2023
f8274d6
Change SemanticdbInfo.plugin_jar from string to File (#1530)
crt-31 Dec 19, 2023
eb63ea0
Fix diagnostic outputs for Scala 2.12.13 (#1532)
aishfenton Dec 19, 2023
eac6f06
Make tests pass on Windows (#1529)
crt-31 Dec 19, 2023
fc0e361
Support Scala 3.3.1 (#1542)
lukaszrola Jan 29, 2024
dcbfa36
Added windows task to CI (#1536)
crt-31 Jan 29, 2024
bfa9167
Bump scalafmt version (#1543)
mateuszkuta256 Jan 30, 2024
0a6df80
Fix checksum io_bazel_rules_scala_scala_parallel_collections in Scala…
lukaszrola Jan 31, 2024
271df7f
Remove binary artifacts due to security policy violation (#1538)
mateuszkuta256 Feb 5, 2024
27bcfab
Use worker proto from @bazel_tools (#1330)
illicitonion Feb 5, 2024
aab9017
Fix to close the compiler object in scalacinvoker (#1545)
crt-31 Feb 19, 2024
92fef4e
Add VirtusLab as adopter (#1547)
romanowski Feb 23, 2024
234ad07
Don't output unused dependency warning and errors when compilation fa…
laurynaslubys Mar 8, 2024
f123577
Conditionally set -Djava.security.manager=allow for jdk >= 17 (#1555)
simuons Mar 20, 2024
2e0b945
Handle the removal of to_proto and to_json from struct (#1554)
c-mita Mar 21, 2024
330081d
fix typo in example tests (Exmaple => Example) (#1553)
KevinBoyette Mar 22, 2024
8f255cd
Introduce `SCALA_VERSIONS` (#1557)
aszady Mar 25, 2024
2df777e
Introduce build setting for current Scala version (#1558)
aszady Mar 28, 2024
4bdf33a
Don't rely on `SCALA_VERSION` in phases (#1559)
aszady Mar 28, 2024
4fcb0da
Make scala_proto_aspect have "provides = [ScalaProtoAspectInfo]" (#1549)
timothyg-stripe Mar 29, 2024
bf70fea
Make scrooge_*_aspect have "provides = [ScroogeAspectInfo]" (#1565)
timothyg-stripe Apr 5, 2024
800cd82
Build with JDK 21 (#1556)
simuons Apr 8, 2024
914e4ee
Bind toolchains to Scala version (#1566)
aszady Apr 8, 2024
89196c0
JacocoRunner script: update for Jacoco 0.8.11 and Bazel 7.0.2 (#1567)
gergelyfabian Apr 12, 2024
a6b26df
Move default toolchain dependencies logic to .bzl file (#1561)
aszady Apr 12, 2024
61bb9bd
Allow version-aware naming for artifact repositories (#1562)
aszady Apr 12, 2024
8158717
Provide `select_for_scala_version` utility macro (#1563)
aszady Apr 22, 2024
7c5126f
Allow transitioning scala version with `scala_version` attribute of r…
aszady Apr 22, 2024
d83ba31
Use version-aware naming for `scala_compiler_source` repository (#1560)
aszady Apr 24, 2024
f4f3d9c
Don't rely on global `SCALA_VERSION` in BUILD files, use select inste…
aszady Apr 24, 2024
98689d0
Propagate maven_coordinates tag to generated scala_import so pom gene…
vinnybod Apr 25, 2024
6b19a31
Use version-aware naming for artifact repositories (#1573)
aszady May 13, 2024
fa23848
Download artifacts for all `SCALA_VERSIONS` (#1574)
aszady May 13, 2024
e2fe29c
Fix the remaining default providers in `setup_scala_toolchain` (#1577)
aszady May 15, 2024
69aec43
Semanticdb clear dir (#1580)
crt-31 May 27, 2024
670b7ee
Build and register toolchains for all `SCALA_VERSIONS` (#1578)
aszady May 29, 2024
d4e00e4
Use JDK Throwable.printStackTrace (#1583)
srdo-humio Jun 3, 2024
e69da66
Make scaladoc rule handle transient deps better (and add some tests) …
crt-31 Jun 3, 2024
d4d8316
Allow configuring multiple Scala versions (#1579)
aszady Jun 4, 2024
35a7dc2
Add a few cross-build examples (#1587)
aszady Jun 6, 2024
47505a5
Tests with version-specific codes (#1586)
aszady Jun 6, 2024
9abf3b0
Documentation update after development of the cross-build (#1588)
aszady Jun 17, 2024
9184f0d
Add scalafmt test with multiple Scala versions (#1589)
aszady Jun 17, 2024
97fced1
Check if java_runtime.version is available (#1591)
kmate-ct Jul 30, 2024
6c6ba4e
Make suffixed scala version config setting publicly visible (#1592)
kmate-ct Jul 30, 2024
6613ffc
Updated artifact versions with sha sums and scala versions (#1597)
lm1nrt Aug 26, 2024
ac4181c
[bugfix] normalize paths to enable running external tests (#1598)
joeljeske Aug 26, 2024
5a2453e
Handle incorrect Scalac options and prevent printing ScalacWorker sta…
WojciechMazur Sep 9, 2024
2d90d53
Scala 3.4.3 support (#1603)
lm1nrt Sep 9, 2024
e53a43b
extra javac opts should override default ones (#1613)
thomasbao12 Sep 11, 2024
3da60a8
Add netrc support for downloading sources (#1609)
grepwood Sep 17, 2024
7d3f022
Fix Bazel 7 related protobuf build failures (#1620)
mbland Oct 8, 2024
cd22d88
Bazel 7 compatibility updates (#1619)
mbland Oct 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
111 changes: 94 additions & 17 deletions .bazelci/presubmit.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,19 @@
---
platforms:
ubuntu1604:
validate_config: 1
tasks:
ubuntu2004:
name: "bazel test //test/..."
platform: ubuntu2004
shell_commands:
# Disable local disk caching on CI.
- mv tools/bazel.rc.buildkite tools/bazel.rc
- echo "import %workspace%/tools/bazel.rc" > .bazelrc
build_targets:
- "//test/..."
test_targets:
- "//test/..."
ubuntu1804:
shell_commands:
# Disable local disk caching on CI.
- mv tools/bazel.rc.buildkite tools/bazel.rc
- echo "import %workspace%/tools/bazel.rc" > .bazelrc
build_targets:
- "//test/..."
test_targets:
- "//test/..."
macos:
name: "bazel test //test/..."
platform: macos
shell_commands:
# Disable local disk caching on CI.
- mv tools/bazel.rc.buildkite tools/bazel.rc
Expand All @@ -27,8 +22,90 @@ platforms:
- "//test/..."
test_targets:
- "//test/..."
rbe_ubuntu1604:
build_targets:
- "//test/..."
test_targets:
- "//test/..."
test_rules_scala_linux:
name: "./test_rules_scala"
platform: ubuntu2004
shell_commands:
# Install xmllint
- sudo apt update && sudo apt install --reinstall libxml2-utils -y
- "./test_rules_scala.sh"
test_rules_scala_linux_last_green:
name: "./test_rules_scala (Bazel green head)"
platform: ubuntu2004
bazel: last_green
shell_commands:
# Install xmllint
- sudo apt update && sudo apt install --reinstall libxml2-utils -y
- echo "build --enable_workspace" >> .bazelrc
- "./test_rules_scala.sh || buildkite-agent annotate --style 'warning' \"Optional build with latest Bazel version failed, [see here](${BUILDKITE_BUILD_URL}#${BUILDKITE_JOB_ID}) (It is not mandatory but worth checking)\""
test_rules_scala_macos:
name: "./test_rules_scala"
platform: macos
shell_commands:
- "./test_rules_scala.sh"
test_rules_scala_win:
name: "./test_rules_scala"
platform: windows
shell_commands:
- "bash test_rules_scala.sh"
test_coverage_linux_6_5_0:
name: "./test_coverage"
platform: ubuntu2004
bazel: 6.5.0
shell_commands:
- "./test_coverage.sh"
test_coverage_macos_6.5.0:
name: "./test_coverage"
platform: macos
bazel: 6.5.0
shell_commands:
- "./test_coverage.sh"
test_reproducibility_linux:
name: "./test_reproducibility.sh"
platform: ubuntu1804
shell_commands:
- "./test_reproducibility.sh"
test_reproducibility_macos:
name: "./test_reproducibility.sh"
platform: macos
shell_commands:
- "./test_reproducibility.sh"
versions_linux:
name: "./test_version.sh"
platform: ubuntu2004
shell_commands:
- "./test_version.sh"
versions_macos:
name: "./test_version.sh"
platform: macos
shell_commands:
- "./test_version.sh"
examples_linux:
name: "./test_examples"
platform: ubuntu2004
bazel: 6.5.0
shell_commands:
- "./test_examples.sh"
cross_build_linux:
name: "./test_cross_build"
platform: ubuntu2004
bazel: 6.5.0
shell_commands:
- "./test_cross_build.sh"
lint_linux:
name: "bazel //tools:lint_check"
platform: ubuntu2004
run_targets:
- "//tools:lint_check"
test_rules_scala_jdk21:
name: "./test_rules_scala with jdk21"
platform: ubuntu2004
shell_commands:
- sudo apt update && sudo apt install -y libxml2-utils
- mv tools/bazel.rc.buildkite tools/bazel.rc
- echo "import %workspace%/tools/bazel.rc" > .bazelrc
- echo "build --java_language_version=21" >> .bazelrc
- echo "build --java_runtime_version=21" >> .bazelrc
- echo "build --tool_java_language_version=21" >> .bazelrc
- echo "build --tool_java_runtime_version=21" >> .bazelrc
- "./test_rules_scala.sh"
9 changes: 9 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
build --enable_platform_specific_config

#Windows needs --worker_quit_after_build due to workers not being shut down when the compiler tools need to be rebuilt (resulting in 'file in use' errors). See Bazel Issue#10498.

build:windows --worker_quit_after_build --enable_runfiles

# Remove upon completing Bzlmod compatibility work.
# - https://github.com/bazelbuild/rules_scala/issues/1482
build --noenable_bzlmod
25 changes: 0 additions & 25 deletions .bazelrc.travis

This file was deleted.

1 change: 1 addition & 0 deletions .bazelversion
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6.5.0
11 changes: 11 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Description
<!-- Mandatory: A crisp one or two line description of your proposed change. -->


<!-- Optional:
A longer explanation of your proposed changes..
This includes listing any breaking changes, if there are any.
-->

### Motivation
<!-- Mandatory: A summary of why you are making this change. -->
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Cut a release whenever a new tag is pushed to the repo.
# You should use an annotated tag, like `git tag -a v1.2.3`.
name: Release

on:
push:
tags:
- 'v*.*.*'

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Prepare workspace snippet
run: .github/workflows/workspace_snippet.sh ${{ env.GITHUB_REF_NAME }} > release_notes.txt

- name: Release
uses: softprops/action-gh-release@v1
with:
# Use GH feature to populate the changelog automatically
generate_release_notes: true
body_path: release_notes.txt
fail_on_unmatched_files: true
files: rules_scala-*.tar.gz
30 changes: 30 additions & 0 deletions .github/workflows/workspace_snippet.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/usr/bin/env bash

set -o errexit -o nounset -o pipefail

# Set by GH actions, see
# https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables
TAG=${GITHUB_REF_NAME}
PREFIX="rules_scala-${TAG:1}"
ARCHIVE="rules_scala-$TAG.tar.gz"
git archive --format=tar --prefix=${PREFIX}/ ${TAG} | gzip > $ARCHIVE
SHA=$(shasum -a 256 $ARCHIVE | awk '{print $1}')

cat << EOF
## Using WORKSPACE

Paste this snippet into your \`WORKSPACE\` file:

\`\`\`starlark
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
name = "io_bazel_rules_scala",
sha256 = "${SHA}",
strip_prefix = "${PREFIX}",
url = "https://github.com/bazelbuild/rules_scala/releases/download/${TAG}/${ARCHIVE}",
)
\`\`\`

See https://github.com/bazelbuild/rules_scala#getting-started for full setup instructions.
EOF
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,9 @@ hash1
hash2
.DS_store
.bazel_cache
.ijwb
.metals
.vscode
unformatted-*.backup.scala
.scala-build
test/semanticdb/tempsrc
16 changes: 16 additions & 0 deletions .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
align.openParenCallSite = false
align.openParenDefnSite = false
continuationIndent.defnSite = 2
danglingParentheses.preset = true
docstrings.style = Asterisk
importSelectors = singleLine
maxColumn = 120
verticalMultiline.newlineBeforeImplicitKW = true
rewrite.redundantBraces.stringInterpolation = true
rewrite.rules = [
RedundantParens,
PreferCurlyFors,
SortImports
]
unindentTopLevelOperators = false
lineEndings=preserve
66 changes: 0 additions & 66 deletions .travis.yml

This file was deleted.

2 changes: 2 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ Google Inc.
Dino Wernli <dinowernli@gmail.com>
Oscar Boykin <oscar.boykin@gmail.com>
John T. Sullivan <john.t.sullivan@gmail.com>
Andy Scott <andy.g.scott@gmail.com>
Ittai Zeidman <ittaiz@gmail.com>
File renamed without changes.
2 changes: 1 addition & 1 deletion CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @iitaiz @johnynek @dinowernil
* @liucijus @simuons
15 changes: 14 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,15 @@ Before you start working on a larger contribution, you should get in touch
with us first. Use the issue tracker to explain your idea so we can help and
possibly guide you.

### Code organization

Core Scala rules (including their implementations) and macros go in [./scala/private/rules/](./scala/private/rules/)
and [./scala/private/macros/](./scala/private/macros/), respectively, and are re-exported for public use
in [./scala/scala.bzl](./scala/scala.bzl).

### Code reviews and other contributions.
**All submissions, including submissions by project members, require review.**
Please follow the instructions in [the contributors documentation](http://bazel.io/contributing.html).
Please follow the instructions in [the contributors documentation](https://bazel.build/contribute).

### The small print
Contributions made by corporations are covered by a different agreement than
Expand All @@ -40,3 +46,10 @@ you can use the `lint.sh` script:

Note that Skylint failures are ignored and that the fix
command will modify your files in place.

### Additional Tests to Run
Some changes reqiring running additional tests which are not currently
part of the CI pipeline.

When editing code in `./third_party`, please run `./dangerous_test_thirdparty_version.sh`
but read the comments at the beginning of the file first.
1 change: 1 addition & 0 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ Oscar Boykin <oscar.boykin@gmail.com>
Justine Alexandra Roberts Tunney <jart@google.com>
Natan Silnitsky <natans@wix.com>
Nadav Wexler <nadavwe@wix.com>
Ittai Zeidman <ittaiz@gmail.com>
Loading