Commit graph

386 commits

Author SHA1 Message Date
soloturn
13ba6db550
centralize version declaration of jna, junit, protobuf (#5285)
* centralize protobuf, jna, junit5 version definitions

Co-authored-by: BenjaminAmos <24301287+BenjaminAmos@users.noreply.github.com>

---------

Co-authored-by: BenjaminAmos <24301287+BenjaminAmos@users.noreply.github.com>
2024-10-23 06:44:09 +02:00
soloturn
9ad6cd26b2
permit install into windows program files (#5282)
when installing terasology into program files, that dir is not writeable.
starting up, terasology tries to create a folder in .local, which then
fails.

therefor, permit to start the application from a different directory,
and let it anyway find its libraries via the classpath. a workaround,
as the app should ideally know its location and other jarfiles without
tinkering with the classpath.

Co-authored-by: BenjaminAmos <24301287+BenjaminAmos@users.noreply.github.com>
2024-10-21 09:26:56 +02:00
soloturn
20d710d686
gradle versions catalog, not yet for build-logic (#5283)
introduce a gradle versions catalog to share dependency versions accross
multiple promects, description here:
https://docs.gradle.org/current/userguide/platforms.html.

this does not yet work for build-logic, unfortunately, see ticket:
https://github.com/gradle/gradle/issues/15383.
2024-10-13 23:07:10 +02:00
jdrueckert
ba4d716488
qa: address pmd findings (#5274)
* qa: fix PMD CollapsibleIfStatements finding

* qa: fix PMD SimplifiedTernary findings

* fix: formatting mistake

* qa: address PMD SystemPrintln findings

- suppress for LoggingContext.java and Terasology.java because logging not necessarily available yet there
- refactor for PathManager.java as logger is already in use in that context, also see previous discussion in https://github.com/MovingBlocks/Terasology/pull/5036#discussion_r889518509

* qa: address PMD InvalidLogMessageFormat finding

- if I understand https://stackoverflow.com/questions/7102339/is-there-a-correct-way-to-pass-arguments-in-slf4j correctly, this should not be less performant but valid SLF4j format

* qa: address PMD AvoidBranchingStatementAsLastInLoop findings

* qa: address PMD ForLoopCanBeForeach findings

* chore: remove unused import

* qa: address PMD AvoidPrintStackTrace findings

* chore: remove unused imports

* chore: fix checkstyle DeclarationOrderCheck warning
2024-10-04 08:11:42 +02:00
Imitater967
66d62f506d fix(facades): fix command line args not working 2024-05-09 21:59:41 +08:00
soloturn
20da7f2b0a
chore: upgrade slf4j to 2.0.11 (#5207) 2024-01-21 21:15:21 +00:00
soloturn
3e9b5b6158
remove logback RegexFilterAction, not supported any more (#5193)
* remove logback RegexFilterAction, not supported any more.

* remove usage of RegexFilterAction, as it is not there any more.
2024-01-20 23:21:45 +00:00
soloturn
8f37f92a3c
build: migrate subprojects.settings.gradle to kotlin (#5203) 2024-01-08 19:16:47 +00:00
soloturn
f3140efa1e
build: prepare subprojects.settings.gradle for kotlin (#5204) 2024-01-06 19:12:35 +00:00
soloturn
2f6b32c323
remove double javadoc, static is uppercase (#5199)
* remove double javadoc, static is uppercase2

* javadoc warnings fixed.

* no inheritdoc on class level
* exception not thrown
* nested links, javadoc "see" goes at the end
2024-01-03 10:44:14 +01:00
soloturn
bf78a58877
prepare switch over to kotlin, "new" java date formatting (#5195)
* qa build.gradle, kotlin, double quotes instead of single.

* build.gradle, prepare kotlin convert.

* qa kotlin, optimize tasks in case they are not executed.

* build.gradle, register the tasks to avoid unnecessary configuration during run.

* build.gradle, use new java.time classes.

* engine/build.gradle, kotlin syntax for dependencies

* engine/build.gradle, kotlin syntax for plugins
2023-12-23 04:56:57 +01:00
jdrueckert
0c2b722412
qa: parametrize logger usages (#5181)
* Revert "revert: "qa: parametrize logger usages (#5173)" (#5180)"

This reverts commit 4f42a8fa1a.

* revert upgrade slf4j-2.0

* micrometer 1.9.8 --> 1.9.12

* qa, still use old slf4j, feedback jdrueckert.

gradle does not care about the logger definition in engine-tests, it
uses the one from engine also for the tests. remove it to not confuse.

---------

Co-authored-by: soloturn <soloturn@gmail.com>
2023-12-06 19:40:17 +00:00
soloturn
1b57c1b436
build: update dependencies (#5189)
* gradle-8.5, full java-21 support. idea-ext plugin 1.1.7.
* junit-bom 5.x.x -> 5.10.1
* lwjgl 3.3.1 -> 3.3.3
2023-12-05 18:04:04 +01:00
jdrueckert
4f42a8fa1a
revert: "qa: parametrize logger usages (#5173)" (#5180)
This reverts commit c56c4dde72.
2023-11-19 22:16:39 +01:00
jdrueckert
c56c4dde72
qa: parametrize logger usages (#5173)
PMD Rule Docs: https://docs.pmd-code.org/pmd-doc-6.55.0/pmd_rules_java_bestpractices.html#guardlogstatement

* upgrade slf4j-2.0, permit passing suppliers to loggers (lazy evaluation) (#5174)
* parametrize logs
* remove superfluous toString() calls
* reuse existing local variables in log
* introduce new local variable to use in logic and logs

Co-authored-by: soloturn <soloturn@gmail.com>
Co-authored-by: Tobias Nett <skaldarnar@googlemail.com>
2023-11-19 21:48:44 +01:00
Robert O'Shea
c3e2466999 Update build files to remove deprecation warnings 2023-10-26 08:06:08 +02:00
jdrueckert
aa43873834
Merge branch 'develop' into java-18-disable-securitymanager 2023-09-24 13:42:51 +02:00
jdrueckert
e710b362d6
chore: consume CrashReporter v5.0.0 (#5131)
- GDrive support was removed with CrashReporter v5
2023-09-03 21:29:18 +02:00
Tobias Nett
e33518e3a0
doc(facade/PC): add README (#5123)
Co-authored-by: BenjaminAmos <24301287+BenjaminAmos@users.noreply.github.com>
Co-authored-by: jdrueckert <jd.rueckert@googlemail.com>
2023-07-31 20:13:39 +02:00
jdrueckert
9cca631e77
Merge branch 'develop' into java-18-disable-securitymanager 2023-07-18 00:06:28 +02:00
Tobias Nett
9a9bd1931e
refactor!: remove TeraEd facade (#5115)
* git rm -r facades/TeraEd
* remove remaining references to TeraEd

TeraEd is a facade wrapping the game itself into a desktop application to provide additional tools "around" it.
For instance, it was used to tweak shader parameters while the game was running.
Ideas for extension of this facade included monitoring capabilities, for instance, inspecting the state of the ECS, but were never implemented.

The benefit of having this outer layer is that we could augment the game itself with additional developer information without baking those into the game itself.

TeraEd used Swing and AWT for its UI.

The TeraEd facade was unused for a long time and has fallen victim to bit rot.
The logic handling state changes to shader parameters was commented out 6 years ago in b10b0f6.
2023-07-13 21:12:36 +02:00
jdrueckert
37f95dc119
Merge branch 'develop' into java-18-disable-securitymanager 2023-07-11 10:48:13 +02:00
jdrueckert
324376a044
refactor: remove vr support (#5112)
* remove OpenVRInput and usages
* remove OpenVRControllers
* remove OpenVRStereoCamera and usages
* remove vr support from rendering config and usages
* remove OpenVRProvider and usages
* remove OpenVRState
* remove OpenVRUtils and usages
* remove ControllerListener and openvrprovider rendering package
2023-07-09 22:36:09 +02:00
Benjamin Amos
c89f64a275 Revert "build(distribution): re-enable SecurityManager in distributions running under Java 18 and above"
This reverts commit ca913261d6.
2023-07-05 22:14:57 +01:00
BenjaminAmos
a2cdbd5308
build(distribution): re-enable SecurityManager in distributions running under Java 18 and above (#5091) 2023-04-05 21:04:30 -05:00
Kevin Turner
b367a180d4
fix(facade): fix broken --load-last-game (#5053) 2022-07-05 20:07:59 +02:00
Kevin Turner
8a7219b637
test: reducing logspam (#5022)
Co-authored-by: jdrueckert <jd.rueckert@googlemail.com>
2022-06-04 19:56:59 +02:00
Kevin Turner
9a122e21fb
security: upgrade dependencies (#5021)
- upgrade snowplow, logstash-logback-encoder, logback-classic, plexus-utils, protobuf-java
- remove dom4j, jetbrains NotNull annotation
2022-05-28 17:18:35 +02:00
Kevin Turner
ec8decfad5 build: make terasology-common for easy inclusion of things applicable to all subprojects 2022-05-21 13:46:39 -07:00
Kevin Turner
b1a35c06f4 build: extract project metrics/analytics to terasology-metrics gradle plugin 2022-05-21 12:21:35 -07:00
jdrueckert
32761bff98
ci: fail checkstyle on all findings except warning.LOW (#4899) 2021-11-27 17:59:30 +01:00
Nail Khanipov
b858dac9ff
fix(server): fix --homedir arg for gradle task server (#4916) 2021-09-30 19:02:14 +02:00
Nail Khanipov
c62e776db3
fix(headless-fixes): remove InputSystem and NuiManager from headlesses (#4907) 2021-09-29 20:14:25 +02:00
Michael Pollind
f85be6d1a0
bugfix: migrate deprecated texture2D (#4892) 2021-09-06 15:52:04 -07:00
Kevin Turner
e8b880872e Merge remote-tracking branch 'origin/develop' into refactor/remove-usage-ThreadManagerSubsystem 2021-08-27 10:30:09 -07:00
Kevin Turner
ded5985b28 chore: checkstyle 🚮 2021-08-27 10:19:51 -07:00
Kevin Turner
a4530564dc chore(facade): make fields private to be consistent with the rest 2021-08-27 10:16:36 -07:00
Josephine Rueckert
a4a98195e1 chore: fix left-over checkstyle issues 2021-08-24 23:12:42 +02:00
Josephine Rueckert
f94dcaa688 chore: fix checkstyle findings 2021-08-24 22:40:32 +02:00
Kevin Turner
4d8a20d1a9 Merge remote-tracking branch 'origin/develop' into refactor/remove-usage-ThreadManagerSubsystem 2021-08-24 13:32:32 -07:00
Kevin Turner
9bc9ccda54
build(facade): oops, junit was supposed to be a test-only dependency (#4859)
doc: notes on memory limits and the Out of Memory Killer
2021-08-24 09:02:04 -07:00
Kevin Turner
fdbc1166b0
Merge branch 'develop' into refactor/remove-usage-ThreadManagerSubsystem 2021-08-23 17:28:35 -07:00
Kevin Turner
a1c3ec2e36
feat: set limits for maximum memory use. (#4147) 2021-08-19 23:12:08 +02:00
Nail Khanipov
c144bdccdc
Merge branch 'develop' into refactor/remove-usage-ThreadManagerSubsystem 2021-08-18 17:37:03 +03:00
Tobias Nett
aeed18455d
chore: adjust default logback configuration (#4842) 2021-08-14 12:23:54 -07:00
Kevin Turner
7f44559977 feat(GameScheduler): add scheduleParallel() method compatible with existing ThreadMonitor 2021-08-09 20:39:12 -07:00
Kevin Turner
06ed38fcbe refactor(GameScheduler): revert name of getScheduler to the more distinctive parallel 2021-08-07 20:06:53 -07:00
Kevin Turner
cbc84adfdf chore(GameScheduler): simplify by providing access to only one scheduler 2021-08-07 17:19:06 -07:00
Kevin Turner
62e650811d chore: whitespace & unuseds 🚮 2021-08-01 12:11:47 -07:00
Michael Pollind
27e8b0ec43 chore: add micrometer thread monitor 2021-07-31 21:58:49 -07:00