Commit Graph
81 Commits
Author SHA1 Message Date
Axionize f6024a4308 build(workflow) Fix not attempting to push to Grim publishing API on fork build 2025-10-10 18:33:08 -04:00
Axionize b4d031c81e build(workflow) Fix changelog generation 2025-10-10 18:30:32 -04:00
Axionize d7cb4aa4e3 Allow builds to run in forks without attempting to publish to modrinth 2025-10-10 18:16:35 -04:00
SamB440 42c6d08ff1 Fix silent failing on build 2025-10-10 15:27:53 +01:00
SamB440 0bbf472c55 Split version compute and build steps 2025-10-10 15:16:56 +01:00
Axionize 0fd2a96aca Even more robust sanitization 2025-10-03 02:12:13 -04:00
Axionize d15a2dd23a Buildscript patches 2025-10-03 01:18:33 -04:00
Axionize 0095f8acc1 Fix using secrets for MODRINTH_ID in workflows again 2025-10-03 01:06:02 -04:00
Axionize b824ce107d Fix using secrets for MODRINTH_ID in workflows 2025-10-03 00:51:19 -04:00
Axionize 50f3d84207 Use secrets for MODRINTH_ID 2025-10-02 07:28:52 -04:00
Axionize a26951cc95 Fix escpaing some stings in preparing final changelog 2025-10-02 07:16:37 -04:00
Axionize b72485da7e Print out build scan url not found when --scan enabled and url not found 2025-10-02 06:05:26 -04:00
Axionize 2f8a4738b3 Remove -q from printVersion so when --scan is applied logs print out 2025-10-02 06:03:46 -04:00
Axionize a74e10e888 Build script fix 2025-10-02 05:38:27 -04:00
Axionize dda13325cf Bugfix 2025-10-02 05:22:42 -04:00
Axionize 2df4c23bf2 Update buildscript to be more flexible; add support for gradle build scans 2025-10-02 05:18:00 -04:00
Axionize 8f785564d7 Run workflow on .github/workflows/** update 2025-10-02 04:48:40 -04:00
Axionize cbc2f51a0c Update new release/alpha build workflow 2025-10-02 04:43:56 -04:00
AoElite fb926ab0fb specify java version fpr codeql 2025-09-28 11:50:30 -04:00
AoElite 40a4c081c7 fix repo property including org 2025-09-28 10:27:05 -04:00
AoElite 1f16d7b0de correct formatting for conditional checks in gradle-publish workflow 2025-09-28 10:21:29 -04:00
AoElite fefaa57044 fix workflow 2025-09-28 10:11:50 -04:00
AoElite 01ff3ecea7 exclude pull requests 2025-09-28 09:59:11 -04:00
AoElite 18d1602b3a use GitHub's default branch instead of assuming 2.0 2025-09-28 09:54:56 -04:00
AoElite c428bf65be add a build properties file to include more details about the build 2025-09-28 08:25:57 -04:00
AoElite 088621faff simplify version extraction 2025-09-28 05:12:04 -04:00
AoElite 2a5979cc3c use different approach in Gradle version extraction in the publishing workflow 2025-09-28 04:49:32 -04:00
AoElite a0bd388109 update the checkout action to v5 in CodeQL workflow 2025-09-28 04:36:41 -04:00
AoElite 2403bc5df7 update gradle publishing actions, remove action dependency requirement, disabled building and publishing of lite 2025-09-28 04:36:01 -04:00
AoElite b70abbe6cd disable CodeQL workflow schedule 2025-09-28 04:25:38 -04:00
AoElite c2a07bd6f1 add back workflow paths 2025-09-16 11:45:33 -04:00
AoElite 184050bfc6 remove secret requirement 2025-09-16 11:17:47 -04:00
AoElite e368bc88ad tweak workflow 2025-09-16 11:14:22 -04:00
AoElite becbba3647 remove workflow paths 2025-09-16 11:07:47 -04:00
AoElite db92c6587e update workflow 2025-09-16 11:02:18 -04:00
Axionize b0906d936f chore(ci): Fix supported versions for Bukkit in Modrinth upload and Fabric dependences 2025-08-11 17:50:35 -04:00
Axionize ba305cf224 chore(ci): Fix escaping characters in changelog generation 2025-08-11 17:07:04 -04:00
Axionize 2bf1260a22 chore(ci): Fix generating changelog content in GitHub Actions 2025-08-11 16:25:54 -04:00
Axionize 5183ad8631 chore(ci): Replace vars.MODRINTH_ID with secrets.MODRINTH_ID to match repository Actions' settings 2025-08-08 21:58:01 -04:00
Axionize 0374b8c345 chore(ci): Create GitHub Actions script for auto-building lite version and publishing to Modrinth w/changelog 2025-08-08 21:51:46 -04:00
SamB440 61f7ad8f71 [ci skip] Add client version to bypass issue template 2025-08-08 13:16:27 +01:00
AoElite f7670d8a9b Create config.yml 2025-05-20 17:23:17 -04:00
SamB440 0750bedb49 Update issue templates to reflect platform independence 2025-04-27 21:23:11 +01:00
Axionize f4e0dadf2b Bump gradle wrapper; only configure compile optimizations for subprojects 2025-04-26 07:42:53 -04:00
Axionize a57e4984b7 Minor Build Optimizations 2025-04-26 07:40:03 -04:00
AoElite 50b360dd09 use our own packetevents repo 2025-04-25 03:53:54 -04:00
a45917c9d2 Platform Independence (future Sponge, Fabric, Neoforge, Velocity, etc... support) (#2024)
* 1.21.5 partial changes

* leftover

* cleanup

* check if player is in vehicle

* 1;1 input transformation

* forgot to push that

* notes

* i hate mutability

* not the case

* this is the right way

* note

* java style

* initial block collisions support

* incorrect fix for powder snow issues (1.21.4)

* support 1.18.2+ horizontal collision detection

* Seperated/Abstracted:
- Thread Management
- GrimEntity/PlatformPlayer + PlatformInventory
- PlatformWorld, PlatformChunk, Location
- Removed many bukkit dependencies
- Migrated Bukkit Events to own code section

- Disabled BStats temporarily

* Refactor Part 2:
- Replace Vectors
- Replace ChatColor.translateColorCodes()

* Stash code

* Almost there; just events and bukkit extensions left

* Fix plugin compilation and exeution of commands

* Refactor Part 3:
Checkpoint
Need to implement:
- Fix PlaceHolderAPI and ManInMyVan's MessageUtil logic error
- Add BStats back
- Add platform independent Permissions
- Make TickEndEvent handling platform independent

Need to Test:
- ProxyAlertMessenger
- Commands

* Platform Independence Achieved!

* Multi-module project init setup

* Complete multi-module project setup

* Fabric Support MVP
- Registering permissions likely incomplete
- Building jar incomplete; only works in Debug mode
- Exempting on reload not done
- Plugin Channels not implemented

* Platform loading fixes

* Refactor resyncPosition() internally; may move to platformPlayer in future

* Beta Fabric Support Complete + General Bug Fixes:
- Generate autocompletions for permissions
- Make OP, and enable-on-join permissions false by default even for ops

- Fixed usage of isWorldLoaded() in pre-migration codebase from breaking 1.8 support
- Numerous command loader bugs fixed
- A lot more

* Fix Fabric execution and shutdown; Initial Fabric build script

* Finish Fabric buildscript; now builds runnable jar

* Fix Actions workflow

* Build against new Grim API instead of locally

* Temporarily build against my fork to fix PacketEvent's broken Fabric support

* Fix scheduler hierachy issue

* Moderate refactoring and codebase cleanup

Fixed GitHub actions

Note that Fabric platform is missing:
- Pistons
- Providing an instance of GrimExternalAPI for other plugins/mods to get
- and more

* PE datatype refactor; Fix Folia support

* Fix endTick on Folia

* Refactor Fabric to support 1.21.4, 1.21.1, and (soon) 1.16.1

* Add 1.20.1 support (once PE is fixed)

* Actuallly commit 1.20.4 support

* Fix Legacy (< 1.16.5) Big DripLeaf CollisionBox modeling

* Fix project build issues and fix 1.20.1 support

* Configure builds to use shared lib versions files; push for rebuild with updated PE; (Working 1.20.1)

* Code cleanup

* Minor code cleanup

* Bump Fabric loom version; trigger rebuild on updated PE fork with Fabric fixes

* Fix 1.8 support using non-existent inventory method

* Fix running fabric in IDE and dev mode

Credit: @Bawnorton

* Hopefully Fix inventory errors

* Cleanup Fabric buildscript

* Fix rare preconditions error with checking for null platformPlayer

* Fix Build error from rebasing https://github.com/GrimAnticheat/Grim/commit/aab710dd8b55bc6fbe88f0f4c79aa214527a20dd

* Code cleanup to address code review concerns

* Fix build issues with relocation on bukkit; force rebuild for fabric registry fix with PE

* Fix library relocation typo

* Bump snakeyaml version for Fabric support

* Build against slim configuralize for fabric support

* Fix Geyser-Fabric compatability

* Initable refactor; support multiple types of initables as one object; shutdown fabric bstats

* Fix updating native ServerPlayerEntity reference; Refactor @NonNull annotations

* Translation parity (and more/better) with pre-platform-independence port

* Make Grim rely on JiJed and loaded PE API; Transition PacketPlayerDigging to be cross-platform from upstream

* Add support for Spigot 1.17 - 1.18.2 itemUsageReset()

- Also decrease allocated via gradle.properties
- Forces rebuild with new PE which will fix Geyser detection

* Only include fabricAPI modules we use, reuse dependency code for multiple projects

* New API refactor with getEventBus()

* Minor Build optimization

* Bump RAM allocation to Gradle in root gradle.properties

* Fix build issues with downloading Conditional Mixin library for PE Fabric

* Partially fix lack of suggestions in cloud commands when incorrect command/typo is typed (only works when required arguments missing in a command on modern brigadier servers due to cloud bug, will fix later)

- Also force rebuild with new PE

* Fix build errors from rebasing

* Add explicit dependency for parent mod on packetevents

* Refactor to use new API with better EventBus and consolidate event-bus related code to be non-platform specific

* Fix error with teleporting between dimensions

* Update Loom; Buildscript consolidation and improvements

* Initial 1.21.5 Support

* Significantly reduce Fabric jar size

* Fix 1.21.5 Support breaking with new Chunk format

* Improve performance of underlying Collection used for exemptUsers

* Update API; Add support for overriding player.resyncPosition(x, y, z, sequence)

* Minor Annotation Style changes

* Execute piston updates from Bukkit Event in player netty channel.
- This fixes a rare race condition with pistons. https://github.com/GrimAnticheat/Grim/issues/2031
- Reduces load on main thread (we check for isChunkLoaded() and do processing in netty channel helper now)

* Fix 1.21.5 support and entity metadata
- Fixed 1.21.5 Pig Variant entity metadata handling
- Read Strider isShaking value from entity metadata
- (Hopefully) Fix 1.8 horse saddle modeling

* Fix working with cooldown groups

* Fix 1.21.5 Inventory compatability issues

* Improve performance of internal sendAlert command invocations

* Fix PlaceholderAPI replacements

* Address code review styling concerns. Fix errors from rebasing on 2.0.

* Fully replace underlying native inventory and player objects when reset on death.
- Fixes fastbreak issues after dying with keepInventory off

* Fix rebase on top of more 1.21.5 and other movement fixes.

* Implement new versioning scheme: https://github.com/GrimAnticheat/Grim/wiki/Versions-and-Versioning

* Rewrite Fabric multi-version support
 - handles 1.16.1 - 1.21.5 (currently only 1.19.3+ works due to Cloud command library limitations)
 - Java 21 -> Java 17 requirement for Fabric on older versions that didn't require Java 21

* Startup time optimization

* Fix Fabric Inventory from multi-version refactor

* Fix update checker by fixing version parsing for new version schema

* Complete translations

* Improve Reach and Hitboxes config

* Fix Entity Modeling
- Save data for what mobs can be hit for future hit-un-hittable-entity-check
- Fix bounding boxes and modeling sizes for some entities (firework rocket, falling block, guardians, armor stands)
- Fix modeling of numerous types of baby mobs

* Add support for Fastbreak on blocks that don't exist in client version

* Fix error when kicking player on Fabric 1.20.2+

* Fix Fabric PlatformEntity and PlatformInventory loader issue

* Fix executing commands in Fabric 1.20.3+

* Build 1.17 module against 1.17.1; Fix loader naming inconsistencies

* Fix logic error with FabricAsyncScheduler's runAtFixedRate()

* use our own webhook system

* Fix build issues with compileOnly exports and RotationData/BadPacketsB imports

* Fix issue with running some commands on 1.21.2+

* update GrimAPI used in build script

* Fix building with new API

---------

Co-authored-by: cyramek <xcyramek@gmail.com>
Co-authored-by: ManInMyVan <113963219+ManInMyVan@users.noreply.github.com>
2025-04-25 02:47:26 -04:00
SamB440 d5fbbbffb0 Workflows are fun! 2025-04-17 21:17:16 +01:00
SamB440 9b04d8ba1b Fix deprecation... 2025-04-17 21:13:36 +01:00
SamB440 8d2f51dc1a Bump setup-gradle to v4 2025-04-17 21:11:00 +01:00