Граф коммитов

5 Коммитов

Автор SHA1 Сообщение Дата
Greg Brail 3b7bd1cfd5 Adopt "errorprone" tool for static analysis
Compared to spotbugs, errorprone seems to run faster, finds a number of
useful things, is easier to configure, and is updated often.

* Add errorprone to the build for all non-test code
* Suppress or disable warnings that are too much for us to fix now
* Fix other errors and warnings
* Remove spotbugs (it and errorprone don't always agree)
2024-07-18 14:41:49 -06:00
Greg Brail aa1bdec7f1 Fix a few problems that were causing build warnings and errors
This should make it easier to build from an IDE because it fixes
a few module settings that were clearly wrong.
2024-06-29 21:29:18 -06:00
Greg Brail 01a7b20655 Rename the main module and all-in-one JAR
The main module is now named "rhino", and exports the
"org.mozilla.rhino" package.

The "rhino-all" module builds the "rhino-all.jar", which contains all
the modules except the ScriptEngine (like the old "rhino.jar") and is
sufficient to run Rhino using "java -jar".
2024-06-17 10:58:03 -04:00
Greg Brail d8ff66bcb5 Update plugin versions and support Java 21 build
Update spotbugs and add necessary exclusions
  Fix one small thing in Context that was making it upset
Update other plugins
Make spotless work -- currently only runs on Java 11

Set time zone in Mozilla tests

Move many tests into modules for better modularity

Add publication info for JARs

The "rhino" module will include an all-in-one JAR for backward
compatibility, but most new code should combine the four modular JARs
instead.

Enable some tests that work now because of Java 11 minimum

Get Gradle to stop trying to download Java versions.
2024-06-09 15:39:04 -07:00
Greg Brail e3d6b16aa2 Big reorganization into module-compatible structure
Follow Gradle conventions for a multi-module build.
Top level modules:

* rhino-runtime: Basic Rhino runtime, enough to run scripts
* rhino-tools: Adds Shell, compiler, "Global" object
* rhino-xml: Add E4X
* rhino: Uber-JAR containing all of the above
* rhino-engine: Java ScriptEngine plug-in
* tests: Tests, which depend on all above

Add proper Java module-info files for each module, and sure that
everything works correctly in the new module system.
2024-06-09 15:39:04 -07:00